Martin Van Buren was elected president in 1836 as the Democratic candidate, continuing the policies of Andrew Jackson. However, after taking office Van Buren faced major economic problems stemming from Jackson's opposition to the Bank of the United States. Specifically, many state banks printed excessive money and issued too many loans, leading to shortages when people and banks could not pay back what they owed. This caused a financial panic in 1837, with banks collapsing across the country. While Van Buren felt the government should not intervene in the economy, the financial crisis hurt his reelection bid in 1840, which was won by Whig candidate William Henry Harrison.