 On February 21, 1543, however, a joint Portuguese-Ethiopian force defeated the Somali-Ottoman army at the Battle of Wayna Daga, in which al-Ghazi was killed and the war won.Ahmed al-Ghazi's widow married Nur ibn Mujahid in return for his promise to avenge Ahmed's death, who succeeded Imam Ahmad, and continued hostilities against his northern adversaries until he killed the Ethiopian Emperor in his second invasion of Ethiopia, Emir Nur died in 1567.The Portuguese, meanwhile, tried to conquer Mogadishu but according to Duarta Barbosa never succeeded in taking it.