In 1529, the Adal Sultanate's forces led by Ahmad ibn Ibrahim al-Ghazi invaded the Ethiopian Empire in what is known as the Ethiopian–Adal war. The Adal occupation lasted fourteen years. During the conflict, the Adal Sultanate employed cannons provided by the Ottoman Empire. In the aftermath of the war, Adal annexed Ethiopia, uniting it with territories in what is now Somalia. In 1543, with the help of the Portuguese Empire, the Solomonic dynasty was restored.