stylistic:style_transfer, structural:summarization, information:extraction, information:classification
Umayyad Caliphate

After al-Hasan, the son of 'Ali, ceded power to Mu'awiyah I, son of Abu Sufyan, Mu'awiyah marched into Kufa, Ali's capital, and received the allegiance of the local 'Iraqis. This is considered to be the beginning of the Umayyad caliphate. Mu'awiyah's governors took special care of Medina and dug the 'Ayn az-Zarqa'a ("Blue Spring") spring along with a project that included the creation of underground ducts for the purposes of irrigation. Dams were built in some of the wadis and the subsequent agricultural boom led to the strengthening of the economy.

Following a period of unrest during the Second Fitna in 679, Husayn ibn 'Ali was martyred at Karbala and Yazid assumed unchecked control for the next three years. In 682, Abd Allah ibn al-Zubayr declared himself Caliph of Mecca and the people of Medina swore allegiance to him. This led to an eight-year-long period of economic distress for the city. In 692, the Umayyads regained power and Medina experienced its second period of huge economic growth. Trade improved and more people moved into the city. The banks of Wadi al-'Aqiq were now lush with greenery. This period of peace and prosperity coincided with the rule of 'Umar ibn Abdulaziz, who many consider to be the fifth of the Rashidun.