William Eaton (23 February 1764 – 1 June 1811) was a United States Army officer and the diplomatic officer Consul General to Tunis (1797–1803). He played an important diplomatic and military role in the First Barbary War between the United States and Tripoli (1801–1805). He led the first foreign United States military victory at the Battle of Derne by capturing the Tripoli subject city of Derne in support of the restoration of the pasha (local monarch), Hamet Caramelli. William Eaton also gave testimony at the treason trial of former Vice President Aaron Burr.