The Treaty of Ghent was the peace agreement that officially ended the War of 1812 between the United States and Great Britain, signed on December 24, 1814. This treaty restored the status quo ante bellum, meaning that all territory and rights were returned to pre-war conditions, which had significant implications for the development of Canada and its relationship with the United States.