The branch of medicine that deals with the diagnosis, treatment, and prevention of mental, emotional, and behavioral disorders.