The first draft of the Indian Penal Code was prepared by the First Law Commission, chaired by Thomas Babington Macaulay. The draft was based on the simple codification of the law of England, while at the same time borrowing elements from the Napoleanic Code and Louisiana Civil Code of 1825.
The first draft of the Code was presented before the Governor-General in council in the year 1837, but subsequent revisions and amendments took two more decades. The complete drafting of the code was done in 1850 and presented to the Legislative Council in 1856. It was delayed being placed on the statute book of British India due to the Indian Revolt of 1857.
The code came into force on January 1st, 1860 after undergoing many revisions and amendments by Barnes Peacock who would go on to serve as the first Chief Justice of the Calcutta High Court.