Indian Penal Code (IPC) is the main criminal code of India. It is a comprehensive code intended to cover all substantive aspects of criminal law.

Indian Penal Code (IPC) is the main criminal code of India. It is a comprehensive code intended to cover all substantive aspects of criminal law. The code was drafted in 1860 on the recommendations of first law commission of India established in 1834 under the Charter Act of 1833 under the Chairmanship of Thomas Babington Macaulay. It came into force in British India during the early British Raj period in 1862. However, it did not apply automatically in the Princely states, which had their own courts and legal systems until the 1940s. The Code has since been amended several times and is now supplemented by other criminal provisions. Based on IPC, Jammu and Kashmir has enacted a separate code known as Ranbir Penal Code (RPC).

After the departure of the British, the Indian Penal Code was inherited by Pakistan as well, much of which was formerly part of British India, and there it is now called the Pakistan Penal Code. Even after the independence of Bangladesh (Formerly known as East Pakistan) from Pakistan (Formerly known as West Pakistan), it continued in force there. It, the Indian Penal Code, was also adopted by the British colonial authorities in Burma, Ceylon (now Sri Lanka), the Straits Settlements (now part of Malaysia), Singapore and Brunei, and remains the basis of the criminal codes in those countries.The Ranbir Penal Code applicable in that state of Jammu and Kashmir of India, is also based on this Code.