In that position, he supervised the Louisiana Purchase, which doubled the size of the United States. Madison succeeded Jefferson with a victory in the 1808 presidential election. After diplomatic protests and a trade embargo failed to end British attacks against American shipping, he led the United States into the War of 1812. The war was an administrative morass and ended inconclusively, but many Americans saw it as a successful 'second war of independence' against Britain.