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. In 1794, in reaction to the attacks, Congress had passed a law to authorize the payment of tribute to the Barbary States.