After Muhammad’s death in 632, there were four caliphs later referred to by the Sunni as “rightfully guided,” who succeeded Muhammad. However, from 656 there were conflicts over succession, and two civil wars (656-661 and 680-692) broke out within the community of Muslims. Out of these wars emerged the Umayyad Dynasty, whose capital was Damascus in modern-day Syria. Responsible for the first great monuments of Islamic art and architecture, Umayyad rulers built the Dome of the Rock in Jerusalem, the Great Mosque of Damascus, and the so-called Desert Palaces in Syro-Palestine . The Umayyads ruled as caliphs until 750 C.E., when they were overthrown by the Abbasids. The Abbasids, like the Umayyads before them, ruled as caliphs over much of the Islamic world until 861. Their capital was at Baghdad, and later they ruled from the palace-city of Samarra in Iraq for parts of the ninth century. After 861, the Abbasids lost control of large parts of their empire through a series of uprisings in which provincial governors asserted their independence. A series of local dynasties, such as the Aghlabids (800-909) and Tulunids (868-905) in North Africa, and the Buyids (945-1055) in Central Asia, emerged and ruled, developing regional artistic styles.