by his son Manuchihr, who quickly recognized the sovereignty of Mahmud of Ghazni, and married one of his daughters. Manuchihr died in 1031, and was succeeded by his son Anushirvan Sharaf al-Ma'ali whom Mahmud of Ghazni had chosen as the heir of the Ziyarid dynasty. From 1032 to 1040, the real power behind the throne was held by Abu Kalijar ibn Vayhan, a relative of Anushirvan Sharaf al-Ma'ali. During this period, Amol was chosen as the capital of Iran and until 1090. He also the first seminary by Hasan al-Utrush built in Amol, which was later named Imam Hassan Askari Mosque. The subsequent Afrasiyab dynasty flourished in the late medieval, pre-Safavid period; it is also called the Kia dynasty. It was founded by Kiya Afrasiyab, who conquered the Bavand kingdom in 1349 and made himself king of the region, in Amol. In this period Sheikh Khalifa Mazandarani of Amol, was a leader Sarbadars. Amol during the ministry of Khajeh Nizam al-Mulk Tusi in the Seljuq dynasty, along with the big cities of that time, the Islamic world Nishapur, Balkh, Herat, Baghdad and Isfahan had a prestigious Nezamiyeh modern school. Safavid In time of the Safavid rulers of Mazandaran, Amol experienced a period of growth. The city was the favorite dwelling of Abbas II of Persia, who often frequented it. At the time Amol was considered "the capital of the inhabited world" and acclaimed for its grandeur. Several bridges were built in the area, across the Haraz river, at this time. During the Safavid era, especially during the reign of Abbas the Great, Mazandaran was considered and a road from Astarabad and Sari to Amol was built. in town was founded through trade center position and business centers already exceeded and founded artillery. The town has spacious and well-supplied bazaars and post and telegraph offices. Excavations in Amol at Hall of Fame have uncovered glazed ceramic and glass belonging to Islamic and modern periods But after the Mongol invasion, the region was subject to devastation and it was during this time that Sari was declared as capital. In the beginning of the 7th century, Hessamedin Ardeshir, shifted the capital from Sari to Amol and constructed his palace there. At this time, a Palace and Ab Anbar was built by the order of Shah Abbas, and the tomb of Mir Ghavam al-Din (Mir Bozorg), which had been destroyed by Timur's agents, was