Career
After serving as a major and commanding troops in the unsuccessful Hungarian Revolution of 1848, he worked as an advocate in the countryside. Following the Austro-Hungarian Compromise of 1867, Csemegi became a high official in the new Hungarian Ministry of Justice, in which capacity he drafted the 1878 Criminal Code as well as the Code of Criminal Procedure. Soon after, he was appointed to the post of Presiding Judge of the Hungarian Supreme Court.