The presidency of Thomas Jefferson began on March 4, 1801, when he was inaugurated as the third President of the United States, and ended on March 4, 1809. Jefferson assumed the office after defeating incumbent President John Adams in the 1800 presidential election. The election was a realigning election in which the Democratic-Republican Party swept the Federalist Party out of power, ushering in a generation of Democratic-Republican dominance in American politics. The election was a realigning election in which the Democratic-Republican Party swept the Federalist Party out of power, ushering in a generation of Democratic-Republican dominance in American politics. After serving two terms, Jefferson was succeeded by Secretary of State James Madison, also of the Democratic-Republican Party. Jefferson appointed three people to the Supreme Court during his presidency. Jefferson also appointed seven United States circuit court judges and nine United States district court judges.