This Article analyzes the 2021 judgment of the Supreme Court of Pakistan in the case of Mst. Safia Bano v. Home Department, Government of Punjab. The case has garnered significant local and international attention due to the Court’s ruling that a death sentence may not be carried out on a defendant who has a mental illness. Setting the case against the backdrop of Pakistan’s Islamic and colonial contexts, this article argues that the Supreme Court has reshaped the insanity defense in Pakistani law by placing the determination of a defendant’s mental state mainly in the hands of medical professionals. However, the Court’s reliance on medical professionals and the subsequent downplaying of the “moral capacity” element of the insanity defense—a determination of law made by courts—has created an obstacle for courts to punish offenders more stringently in future cases due to the popular belief that mental health professionals are ill-equipped to answer broader questions of justice for victims and society. The article recommends that this issue can be remedied by establishing an objective legal test for insanity that considers Islamic law, Pakistani precedent, and advances in medical science.