The "Funj Chronicle", a multi-authored history of the Funj Sultanate compiled in the 19th century, ascribes the destruction of Alodia to King Amara Dunqas; he was also allied with Abdallah Jammah. This attack is dated to the 9th century after the Hijra ( 1396–1494). Afterwards, Soba is said to have served as the capital of the Funj until the foundation of Sennar in 1504. The "Tabaqat Dayfallah", a history of Sufism in Sudan ( 1700), briefly mentions that the Funj attacked and defeated the "kingdom of the Nuba" in 1504–1505.