The War of 1812 was fought between the United States and the British Empire from 1812 to 1815, on land in North America and at sea around the world.