The facts surrounding Marbury were complicated. In the election of 1800, the newly organized Democratic-Republican party of Thomas Jefferson defeated the Federalist party of John Adams, creating an atmosphere of political panic for the lame duck Federalists. In the final days of his presidency, Adams appointed a large number of justices of peace for the District of Columbia whose commissions were approved by the Senate, signed by the president, and affixed with the official seal of the government. The commissions were not delivered, however, and when President Jefferson assumed office March 5, 1801, he ordered James Madison, his Secretary of State, not to deliver them. William Marbury, one of the appointees, then petitioned the Supreme Court for a writ of mandamus, or legal order, compelling Madison to show cause why he should not receive his commission.