According to the 15th-century Egyptian historian al-Maqrizi, Abd al-Aziz had relocated due to flooding in Fustat in 690 and chose the site of Hulwan for his new capital because its elevation, 35 meters above the banks of the Nile, was higher than the river's flood line.