According to al-Bakri, the major part of the city was called El-Ghaba and was the residence of the king. It was protected by a stone wall and functioned as the royal and spiritual capital of the Empire. It contained a sacred grove of trees in which priests lived.