The European Age of discovery brought Europe's then superpower the Portuguese empire to the coast of East Africa, which at the time enjoyed a flourishing trade with foreign nations. The wealthy southeastern city-states of Kilwa, Mombasa, Malindi, Pate and Lamu were all systematically sacked and plundered by the Portuguese. Tristão da Cunha then set his eyes on Ajuran territory, where the battle of Barawa was fought. After a long period of engagement, the Portuguese soldiers burned the city and looted it. However, fierce resistance by the local population and soldiers resulted in the failure of the Portuguese to permanently occupy the city, and the inhabitants who had fled to the interior would eventually return and rebuild the city. After Barawa, Tristão would set sail for Mogadishu, which was the richest city on the East African coast. But word had spread of what had happened in Barawa, and a large troop mobilization had taken place. Many horsemen, soldiers and battleships in defense positions were now guarding the city. Nevertheless, Tristão still 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.