The two countries that fought the War of 1812 were Great Britain and the United States. The war's main causes were British trade restrictions against the U.S. and the forced impressment of American sailors by the British Royal Navy.
The war lasted from 1812 to 1815 and featured many significant defeats for the United States, including the invasion and burning of Washington, D.C. in August 1814. However, the war also marked many victories for the United States, including defeats of the British invasions in New Orleans, Baltimore and New York. These victories prompted a new sense of American patriotism nationwide. The war ended on Feb. 17, 1815, with the ratification of the Treaty of Ghent.