Forensic psychiatry is the branch of psychiatry which deals with the assessment and treatment of mental disorders in individuals involved in the legal system, particularly those who are accused of crimes. The field combines knowledge from psychiatry, psychology, and law to understand the relationship between mental health and criminal behavior.