Doctor-patient confidentiality is a legal and ethical principle that requires healthcare providers to keep a patient's medical information private unless consent is given to disclose it. This principle is fundamental to building trust in the healthcare relationship, ensuring that patients feel safe to share sensitive information necessary for effective treatment without fear of exposure.