During this time, Americans established their government and two parties emerged--the Federalists and the Republicans. Americans had a lot to deal with during this period. They had to struggle with the need to increase taxes to pay for the American Revolution as well as deal with the French Revolution which divided American support between France and Britain. Under President Jefferson, the country expanded westward with the purchase of the Louisiana territory and the Lewis and Clark expedition. The War of 1812 against Britain, sometimes called the Second War of American Independence, lasted three years. After the war, a mood of nationalism existed as people focused on events and issues at home. However, troubles were brewing, particularly on the topic of slavery.