Since 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 (the earliest recorded migration from Egypt to the Sudanese Nile Valley dates to 1324) and 15th century 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.