From the late 11th/12th century, Makuria's capital Dongola was in decline, and Alodia's capital declined in the 12th century as well. In the 14th and 15th centuries Bedouin tribes overran most of Sudan, migrating to the Butana, the Gezira, Kordofan and Darfur. In 1365 a civil war forced the Makurian court to flee to Gebel Adda in Lower Nubia, while Dongola was destroyed and left to the Arabs. Afterwards Makuria continued to exist only as a petty kingdom. After the prosperous reign of king Joel ( 1463–1484) Makuria collapsed. Coastal areas from southern Sudan up to the port city of Suakin was succeeded by the Adal Sultanate in the fifteenth century. To the south, the kingdom of Alodia fell to either the Arabs, commanded by tribal leader Abdallah Jamma, or the Funj, an African people originating from the south. Datings range from the 9th century after the Hijra ( 1396–1494), the late 15th century, 1504 to 1509. An alodian rump state might have survived in the form of the kingdom of Fazughli, lasting until 1685.