Under Washington, funds had been appropriated to build a navy. Adams had access to these ships but did not think the American people were prepared for a protracted war in far off northern Africa, so he continued paying tribute. When Jefferson became President, he had had enough. He decided to use our treasury, not, in the words of the U.S. Consul to Tunis William Eaton, “to buy oil of roses to perfume that pirate’s beard,” but rather to send “gun batteries to chastise his temerity.” When Jefferson refused to pay tribute to the Barbary pirates in 1801, they declared war of sorts upon the United States and began to attack American ships in the area, stealing property and imprisoning citizens. Jefferson sent troops to protect American interests. War continued until 1805 when a treaty of peace was signed on June 10 where the Barbary pirates agreed to end hostilities.