in enemy hands. Decatur's men set fire to the Philadelphia and escaped. A notable incident in the war was the expedition undertaken by diplomatic Consul William Eaton with the objective of replacing the pasha with an elder brother living in exile, who had promised to accede to all the wishes of the United States. Eaton, at the head of a mixed force of US Soldiers, Sailors, and Marines, along with Greek, Arab and Turkish mercenaries numbering approximately 500, marched across the Egyptian / Libyan desert from Alexandria, Egypt and with the aid of three American warships, succeeded in capturing Derna. Soon afterward, on 3 June 1805, peace was concluded. The pasha ended his demands and received $60,000 as ransom for the Philadelphia prisoners under the 1805 Treaty with Tripoli. In 1815, in consequence of further outrages and due to the humiliation of the earlier defeat, Captains Bainbridge and Stephen Decatur, at the head of an American squadron, again visited Tripoli and forced the pasha to comply with the demands of the United States. See Second Barbary War. Late Ottoman era In 1835, the Ottomans took advantage of a local civil war to reassert their direct authority. After that date, Tripoli was under the direct control of the Sublime Porte. Rebellions in 1842 and 1844 were unsuccessful. After the French occupation of Tunisia (1881), the Ottomans increased their garrison in Tripoli considerably. Italian era Italy had long claimed that Tripoli fell within its zone of influence and that Italy had the right to preserve order within the state. Under the pretext of protecting its own citizens living in Tripoli from the Ottoman government, it declared war against the Ottomans on 29 September 1911, and announced its intention of annexing Tripoli. On 1 October 1911, a naval battle was fought at Prevesa, Greece, and three Ottoman vessels were destroyed. By the Treaty of Lausanne, Italian sovereignty over Tripolitania and Cyrenaica was acknowledged by the Ottomans, although the caliph was permitted to exercise religious authority. Italy officially granted autonomy after the war, but gradually occupied the region. Originally administered as part of a single colony, Tripoli and its surrounding province were a separate colony from 26 June 1927 to 3 December 1934, when all Italian possessions in North Africa were merged into one colony. By 1938, Tripoli had 108,240 inhabitants, including 39,096 Italians. Tripoli underwent a huge architectural and urbanistic improvement under Italian