The Treaty of Ghent was the peace treaty that ended the War of 1812 between the United States and the United Kingdom. It took effect in February 1815. The treaty restored relations between the two parties by restoring the pre-war borders of June 1812. Both sides were eager to end the war. It ended when the treaty arrived in Washington and was immediately ratified unanimously by the United States Senate and exchanged with British officials the next day.

The treaty was approved by the British Parliament and signed into law by the British royalty on December 30, 1814. It took a month for news of the treaty to reach the United States, during which American forces under Andrew Jackson won the Battle of New Orleans on January 8, 1815. U.S. President James Madison signed the treaty and exchanged final ratified copies with the British ambassador on February 17, 1815.