Forensic psychiatry is a specialized branch of medicine that combines the fields of mental health and the law. It involves the assessment and treatment of individuals who have mental health disorders and are involved in legal matters, such as criminal cases or civil lawsuits. Forensic psychiatrists use their expertise to evaluate the mental state of individuals involved in legal proceedings and provide expert opinions in court to help determine their competency and responsibility.