In 1821, by appointment of the Louisiana State Legislature, of which he had become a member of the Louisiana House of Representatives in the preceding year, Livingston began the preparation of a new code of criminal law and procedure, afterwards known in Europe and America as the "Livingston Code." It was prepared in both French and English, as was required by the necessities of practice in Louisiana, and actually consisted of four sections: crimes and punishments, procedure, evidence in criminal cases, and reform and prison discipline. Though substantially completed in 1824, when it was accidentally burned, and again in 1826, the criminal code was not printed in its entirety until 1833. It was never adopted by the state.