Al-Mutawakkiliyya was the largest building project of the caliph Ja'far al-Mutawakkil, who ordered the construction of a new city on the northern border of al-Dur in 859. This city, which was built in the vicinity of the settlement of al-Mahuza, was intended to replace Samarra as the residence of the caliphs.