The 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.
The draft of the Indian Penal Code was prepared by the First Law Commission, chaired by Thomas Babington Macaulay in 1834 and was submitted to Governor-General of India Council in 1835. Its basis is the law of England freed from superfluities, technicalities and local peculiarities. Elements were also derived from the Napoleonic Code and from Edward Livingston‘s Louisiana Civil Code of 1825. The first final draft of the Indian Penal Code was submitted to the Governor-General of India in Council in 1837, but the draft was again revised. The drafting was completed in 1850 and the Code was presented to the Legislative Council in 1856, but it did not take its place on the statute book of British India until a generation later, following the Indian Rebellion of 1857. The draft then underwent a very careful revision at the hands of Barnes Peacock, who later became the first Chief Justice of the Calcutta High Court, and the future puisne judges of the Calcutta High Court, who were members of the Legislative Council, and was passed into law on 6 October 1860. The Code came into operation on 1 January 1862. Macaulay did not survive to see his masterpiece come into force, having died near the end of 1859.