the city. Nevertheless, Tristão opted to storm and attempt to conquer the city, although every officer and soldier in his army opposed this, fearing certain defeat if they were to engage their opponents in battle. Tristão heeded their advice and sailed for Socotra instead. After the battle the city of Barawa quickly recovered from the attack. 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. Over the next several decades Somali-Portuguese tensions remained high and the increased contact between Somali sailors and Ottoman corsairs worried the Portuguese who sent a punitive expedition against Mogadishu under João de Sepúlveda, which was unsuccessful. 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 Portuguese 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, securing the city's autonomy in the Indian Ocean. The Ottoman Empire would remain an economic partner of the Somalis. Throughout the 16th and 17th centuries successive Somali Sultans defied the Portuguese economic monopoly in the Indian Ocean by employing a new coinage which followed the Ottoman pattern, thus proclaiming an attitude of economic independence in regard to the Portuguese. Early modern Gobroon-Bardera War In the early modern period the Gobroon Dynasty, a Somali royal house ruled parts of Horn of Africa as a regional power during the 18th and 19th centuries. It was established by the Ajuran soldier Ibrahim Adeer, who had defeated various vassals of the collapsed Ajuran Empire and established the House of Gobroon. The