The Treaty of Ghent was the peace treaty that ended the War of 1812 between the United States of America and the United Kingdom. It was signed on 24 December 1814 in the Flemish city of Ghent. The treaty restored the borders of the two countries to the line before the beginning of the war.