Question: which country did the united states fight in the war of 1812?
Answer: War of 1812, (June 18, 1812–February 17, 1815), conflict fought between the United States and Great Britain over British violations of U.S. maritime rights. It ended with the exchange of ratifications of the Treaty of Ghent.