After Jefferson won the election, Adams made a series of “**midnight appointments**” which were commissions to Federalists judges. Basically, Adams was trying to strengthen the Federalists’ role in government before he lost power.
Jefferson ordered that these commissions not be delivered. William Marbury sued for his commission.
Marshall ruled that Marbury had a right to his commission due to the Judiciary Act of 1789. However, Marshall also ruled that the Act was Unconstitutional, so Marbury did not receive his commission.
By ruling that an Act was unconstitutional, Marshall established the **doctrine of judicial review**. The Supreme Court could then decided wether an act of Congress or the president was allowed by the Constitution and could overrule the actions of the other two branches.