Legal basis: Criminal Procedure Law of People's Republic of China (PRC).
Article 2 The tasks of People's Republic of China (PRC) Criminal Procedure Law are to accurately and timely ascertain the facts of crimes, correctly apply the law, punish criminals, protect innocent people from criminal investigation, educate citizens to consciously abide by the law, actively fight against criminal acts, safeguard the socialist legal system, respect and protect human rights, protect citizens' personal rights, property rights, democratic rights and other rights, and ensure the smooth progress of socialist construction.
Article 3 The public security organs shall be responsible for the investigation, detention, execution of arrest and preliminary examination of criminal cases. The people's procuratorate shall be responsible for the prosecution, approval of arrest, investigation and prosecution of cases directly accepted by procuratorial organs. The people's court is responsible for the trial. Except as otherwise specified by law, no other organ, organization or individual has the right to exercise these powers.
In criminal proceedings, the people's courts, people's procuratorates and public security organs must strictly abide by the relevant provisions of this Law and other laws.
Article 4 State security organs shall handle criminal cases endangering State security according to law and exercise the same functions and powers as public security organs.
Article 5 The people's courts exercise judicial power independently according to law, and the people's procuratorates exercise procuratorial power independently according to law, without interference from administrative organs, social organizations and individuals.
Article 6 In criminal proceedings, the people's courts, people's procuratorates and public security organs must rely on the masses, take facts as the basis and take the law as the criterion. All citizens are equal in applying the law and are not allowed to have any privileges before the law.