The formal concept of war crimes emerged from the codification of the customary international law that applied to warfare between sovereign states, such as the Lieber Code (1863) of the Union Army in the American Civil War and the Hague Conventions for international war.