Mental health courts are specialized court programs designed to handle cases involving defendants with mental health issues, focusing on treatment and rehabilitation rather than traditional punitive measures. These courts aim to divert individuals away from incarceration and into appropriate mental health treatment, recognizing that underlying psychological conditions often contribute to criminal behavior. By providing a structured environment and support, mental health courts facilitate the integration of mental health treatment with the criminal justice process.