Answer:
The War of 1812 was a conflict that confronted the United States against the United Kingdom and its Canadian colonies that developed between 1812 and 1815. The clashes occurred by land and by sea.
At a time when Great Britain had to endure a great war effort to confront Napoleonic France, on June 18, 1812 the United States declared war on it in order to invade the Canadian territories belonging to the British Empire. These had been populated for forty years by English speakers and maintained numerous cultural and commercial relations with the United States.
Among other causes of the war were the restrictions on trade imposed by the United Kingdom because of the war it maintained in Europe against France, the forced recruitment of US merchant sailors to serve in the Royal British Navy and British support for indigenous peoples of North America that opposed the expansion of the United States.
The two sides invaded adversary territory, but these invasions failed or were only temporary. At the end of the war both nations occupied rival territory, but these areas were restored thanks to the Treaty of Ghent. In the treaty, both nations reached a peace agreement that returned the borders to the status quo prior to the war.
In Canada this war is remembered as a victory by avoiding the conquest of its southern neighbors, while in the United States it is celebrated as the birth of a new spirit of national unity of the young nation and an important demonstration of international strength.