Insanity law refers to a legally established inability to understand right from wrong, or to conform one's behavior to the requirements of the law.