The Indian Penal Code (IPC) is the main criminal code of modern India. It is a code meant to cover all aspects of criminal law. The code was drafted on 6th October 1860. on the recommendation 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. They had their own courts and legal systems until the 1940s. The Code has been amended several times and is now supplemented by other criminal provisions.
After the Partition of the British Indian Empire, the Indian Penal Code was inherited by its successor states, the Dominion of India and the Dominion of Pakistan (where it continues as the Pakistan Penal Code). After the separation of Bangladesh from Pakistan, the code continued in force there. The code was also adopted by the British colonial authorities in colonial Burma, Ceylon (modern Sri Lanka), the Straits Settlements (now part of Malaysia), Singapore and Brunei. It is the basis of the criminal codes in those countries.