from Surat and Southeast African merchants from Pate, seeking to bypass both the Portuguese blockade and Omani meddling, used the Somali ports of Merca and Barawa (which were out of the two powers' jurisdiction) to conduct their trade in safety and without interference. The 16th century Somali-Portuguese wars in East Africa meant that geopolitical tensions would remain high. The increased contact between Somali sailors and Ottoman corsairs worried the Portuguese, who sent multiple punitive expeditions against the Ajuran Empire in order to pacify the Somali port cities. For example, the city of Barawa was sacked by a Portuguese fleet led by Tristão da Cunha in the Battle of Barawa (1507). In 1542, the Portuguese commander João de Sepúvelda led a small fleet on an expedition to the Somali coast. During this expedition he briefly attacked Mogadishu, capturing an Ottoman ship and firing upon the city, which compelled the sultan of Mogadishu to sign a peace treaty with the Portuguese. Sailing on to Barawa, João de Sepúvelda again sacked that city and secured a new peace from it. Ottoman-Somali cooperation against the Portuguese in the Indian Ocean reached a high point in the 1580s when Ajuran clients of the Somali coastal cities began to sympathize with the Arabs and Swahilis under Portuguese rule and sent an envoy to the Turkish corsair Mir Ali Bey for a joint expedition against the Portuguese. He agreed and was joined by a Somali fleet, which began attacking Portuguese colonies in Southeast Africa. The Somali-Ottoman offensive managed to drive out the Portuguese from several important cities such as Pate, Mombasa and Kilwa. However, the Portuguese governor sent envoys to India requesting a large Portuguese fleet. This request was answered and it reversed the previous offensive of the Muslims into one of defense. The Portuguese armada managed to re-take most of the lost cities and began punishing their leaders, but they refrained from attacking Mogadishu. Berbera, the main port of the Isaaq Sultanate, was the most important port in the Horn of Africa between the 18th–19th centuries. For centuries, Berbera had extensive trade relations with several historic ports in the Arabian Peninsula. Additionally, the Somali and Ethiopian interiors were very dependent on Berbera for trade, where most of the goods for export arrived from. During the 1833 trading season, the port town swelled to over 70,000 people, and upwards of 6,000 camels laden with goods arrived from