Can you be sentenced for murder by mental illness?

Article 18 of the Criminal Law stipulates that if a mental patient causes harmful results when he cannot identify or control his own behavior, he shall not bear criminal responsibility if he is identified through legal procedures, but his family members or guardians shall be ordered to take strict care and medical treatment; When necessary, the government forces medical treatment.

Intermittent mental patients who commit crimes when they are mentally normal should bear criminal responsibility. If a mental patient who has not completely lost the ability to identify or control his own behavior commits a crime, he shall bear criminal responsibility, but he may be given a lighter or mitigated punishment. If the murderer kills in peacetime, he will be punished. If he kills in illness, he does not need to be punished, but his family should bear civil liability for compensation.

Article 19 of the Criminal Law stipulates that a deaf-mute or blind person who commits a crime may be given a lighter, mitigated or exempted punishment.

Article 20 stipulates that in order to protect national interests, public interests, personal, property and other rights of oneself or others from ongoing illegal infringement, stopping illegal infringement and causing damage to the illegal infringer shall be considered as self-defense and shall not bear criminal responsibility.

If justifiable defense obviously exceeds the necessary limit and causes great damage, criminal responsibility shall be borne, but the punishment shall be mitigated or exempted.

Taking defensive actions against violent crimes such as assault, murder, robbery, rape, kidnapping, etc., which seriously endanger personal safety, and causing casualties to illegal infringers, is not excessive defense and does not bear criminal responsibility.

References:

Baidu encyclopedia-criminal law