Medical malpractice occurs when a healthcare professional deviates from the standards of their profession, causing harm to a patient. It involves proving negligence, a breach of duty, causation, and damages in a legal context to hold the professional accountable.