James Monroe (1758-1831), son of a Virginia planter, wounded soldier of the American War of Independence, governor of Virginia, minister to France and secretary of state — fifth president (1817-1825), the last of the Virginia dynasty. His term bought Florida (the Adams-Onís treaty of 1819), and the Missouri Compromise of 1820 steadied the north-south balance; with Britain in 1817 the Great Lakes were demilitarized, the two-ocean frontier left unguarded. In 1823, on his secretary of state Adams's plan, the annual message declared that Europe must not colonize the western hemisphere further, nor the Americas meddle in Europe's quarrels — the Monroe Doctrine, the charter of an American system: weak in fact at the time, resting quietly on the Royal Navy's shadow, it became a century later the base of the United States's hemisphere policy. With Jefferson and Madison he closed the founders' line, dying in New York in 1831 too poor for his funeral — state and nation paid his debts after.