Mental disorder or insanity defence

A defence put forth when a person commits a crime while suffering from a mental disorder that renders him or her incapable of appreciating the nature and quality of the act or knowing that it is wrong. An accused found not criminally responsible by reason of mental disorder will be released unless a court or review board concludes that he or she is a significant threat to the public.

Source