The phrase
"insanity defense" refers to a legal argument used by someone accused of committing a crime, claiming that they should not be held responsible for their actions because they were mentally ill or didn't understand the consequences of their actions. It is a defense strategy aimed at proving that the accused lacked the mental capacity to understand right from wrong at the time of the crime.
Full definition