The War of 1812 was fought between the United States and Great Britain from June 18, 1812, to February 17, 1815. The conflict arose primarily over British violations of U.S. maritime rights, including the impressment of American sailors by the British Navy and disagreements over trade, western expansion, and Native American policy. The war ended inconclusively after three years of fighting, and the Treaty of Ghent was signed on December 24, 1814, officially ending the war