In 1317, during the period of Makurian decline, it was converted into a mosque, serving this purpose until it was closed and turned into a historic monument in 1969. Shortly afterwards Polish archaeologists began to excavate the building. It has been described as possibly "the most important, symbolic edifice in the medieval history of Sudan".[1] It is presently the oldest preserved mosque in Sudan.