abd al-aziz completely rebuilt and expanded the mosque of amr, fustat's congregational mosque. to its west, in 686/87, he erected the "dar al-mudhahabba" (the gilded palace). the residential complex was also known in the contemporary arabic sources as "al-madina" (the city), giving an indication of its size, which may have been including gardens and at least two stories. it overlooked the nile and likely included the house and lot of the high-ranking official kharija ibn hudhafa (d. 661), which marwan purchased from kharija's son for 10,000 gold dinars. according to the historian wladyslaw kubiak, the "dar al-bayda" (the white palace) built by marwan in fustat may have been viewed by abd al-aziz as below his stature and the new palace became the official residence of egypt's marwanids (descendants of caliph marwan). at least four roofed markets, each specializing in a type of merchandise, were built during his reign. in august/september 688, abd al-aziz also built the qantara bridge over the "khalij amir al-mu'minin" (canal of the commander of the faithful), which passed through fustat and connected heliopolis (ayn shams) to the nile. the bridge, located in the hamra al-quswa neighborhood, was likely meant to serve a major circulatory road in fustat and its remains were still visible in the 12th century or later. it was one of a number of bridges constructed in the city by abd al-aziz.