The palace remained apparently unoccupied after al-Ma'mun left to take up the viceroyalty of Khurasan, and throughout the Abbasid civil war that followed Harun's death between al-Ma'mun and his half-brother, al-Amin (). During the war, the Palace of the Golden Gate, which had been al-Amin's stronghold during the Siege of Baghdad (812–813), was virtually destroyed, and the Khuld also suffered considerable damage. As a result, when al-Ma'mun returned to Baghdad in 819 he rook up residence in the western wing of the Khuld, while his vizier and trusted confidant, al-Hasan ibn Sahl, took up residence in the Ma'muni Palace. Shortly after, as a recompense for the vizier's lavish expenditure during the festivities for the marriage between al-Ma'mun and al-Hasan's daughter Buran, the Caliph gifted the palace to him. Al-Hasan rebuilt and enlarged the palace further, but after a few years he gave it to his daughter Buran, who outlived her husband al-Ma'mun and lived there until her death in 884. Hasan's rebuilding and Buran's usage established the palace's common name, "Palace of al-Hasan" or "Hasani Palace" (), although even in later times writers still were wont to refer to it as the Ma'muni or even the Ja'fari Palace (, ).