Derna was the location of the 1805 Battle of Derne, in which forces under U.S. Lieutenant and former Consul to Tripoli William Eaton—who had marched 500 miles across the Libyan Desert from Alexandria—captured the city as part of the First Barbary War.