On December 24, 1814 the Treaty of Ghent was signed ending the War of 1812. The treaty called for returning all borders and lands as they were before the war. Because of the distances involved and the delay in communications, at the time of the battles neither side knew a peace treaty had been signed.