The answer is "insanity defense".
The insanity defense, otherwise called the mental disorder defense, is a resistance by pardon in a criminal case, contending that the litigant isn't in charge of his or her activities due to a verbose or steady mental illness at the season of the criminal demonstration.