Treaty of Ghent
The Treaty of Ghent (ratified in 1815) ended the war and restored the status quo ante bellum.