The Code of Criminal Procedure was made to ease the process of delivering justice. No person should be illegally arrested and detained the procedure to prove someone guilty should be fair these are the things CrPC deals with. Section 84 of the Indian Penal Code states that “It won’t be considered an offense if the offense is done by a person who while committing was incapable to understand his actions, was of unsound mind, the act he did was contrary to law”. So if any person of Unsound mind commits any act the act will not be considered an offense and his act will fall under “General Exceptions”. Eleven provisions in CrPC in Chapter XXV Section 328-339 for people of unsound minds accused of the crime. The articles are further explained for better understanding The Magistrate in proceedings under Section 328 .CrPC found the man to be of unsound mind, and Magistrate passed an order too in this regard and the trial was started only when the accused was pronounced mentally fit by the respective authorities. It can be concluded that there are many provisions that are there to protect the interests of the person of unsound mind. It can be said that the magistrate is given extensive powers to postpone the trial or procedures for a person of unsound mind during the trial. The court shall consider the recovered person as a person of sound mind. A relative or friend of that person of unsound mind may file a petition to the magistrate for his relief. The powers given to the court for protecting the lunatic person are extensive and help the judiciary to become more effective and accessible.