James Monroe was the fifth president of the United States, elected in both 1816 and 1820. He succeeded James Madison who, with Thomas Jefferson, supported him in the election of 1816. He ran unopposed in 1820.
Prior to running for president, Monroe served as a U.S. senator, governor of Virginia, secretary of state and secretary of war. James Monroe's presidency was referred to as the "Era of Good Feelings." Despite that moniker, the nation endured its first economic depression during this administration from 1819 to 1821. A key event during President Monroe's tenure was the Missouri Compromise in which Missouri came into the nation as a slave state and Maine was admitted as a free state. In 1823, the Monroe Doctrine put forth a philosophy of foreign policy which was intended to stop Europe from further encroachment in the Western Hemisphere. James Monroe was succeeded by John Quincy Adams.