Title: Almoravid dynasty
Content:  The Almoravid dynasty (المرابطون ) was an imperial Berber Muslim dynasty centered in Morocco. It established an empire in the 11th century that stretched over the western Maghreb and Al-Andalus. Founded by Abu Bakr ibn Umar, the Almoravid capital was Marrakesh, a city the ruling house founded circa 1070. The dynasty originated among the Lamtuna and the Gudala, nomadic Berber tribes of the Western Sahara, traversing the territory between the Draa, the Niger, and the Senegal rivers. The Almoravids were crucial in preventing the fall of Al-Andalus to the Iberian Christian kingdoms, when they decisively defeated a coalition of the Castilian and Aragonese armies at the Battle of Sagrajas 
Title: Imperial cities of Morocco
Content: the Almoravid dynasty, from 1071 to 1147; ; the Almohad dynasty, from 1147 to 1244; ; the Saadi dynasty, as princes of Tagmadert from 1511 to 1554 and as sultans of Morocco from 1554 to 1659; ; the Alaouite dynasty, in certain periods. Marrakesh is considered a symbol of Morocco and the power of the Almoravid and Almohad dynasties. It was founded in 1071 and became the capital for the two following centuries. Marrakesh was the capital city for:
Title: Almoravid dynasty
Content:  as sources of inspiration. The Almoravids were responsible for establishing a new imperial capital at Marrakesh, which became a major center of architectural patronage thereafter. The Almoravids adopted the architectural developments of al-Andalus, such as the complex interlacing arches of the Great Mosque in Córdoba and of the Aljaferia palace in Zaragoza, while also introducing new ornamental techniques from the east such as muqarnas ("stalactite" or "honeycomb" carvings). After taking control of Al-Andalus in the Battle of Sagrajas, the Almoravids sent Muslim, Christian and Jewish artisans from Iberia to North Africa to work on monuments. The Great Mosque in Algiers (c. 
Title: History of Marrakesh
Content:  city and hunting down the last Almoravid emir in his palace. The Almohad Caliph Abd al-Mu'min refused to enter the city because (he claimed) the mosques were oriented incorrectly. The Almohads promptly demolished and razed all the Almoravid mosques so Abd al-Mu'min could make his entry. Only the ablution fountain of Koubba Ba'adiyin remains of Almoravid architecture today, in addition to city's main walls and gates (though the latter have been modified many times). Although the Almohads maintained their spiritual capital at Tinmel, in the High Atlas, they made Marrakesh the new administrative capital of their empire, and erected much monumental architecture. On top of ruins 
Title: Almoravid dynasty
Content:  1086. This enabled them to control an empire that stretched 3,000 kilometers (1,900 mi) north to south. Their rulers never claimed the title of caliph and instead took on the title of Amir al-Muslimīn ("Prince of the Muslims") while formally acknowledging the overlordship of the Abbasid Caliphs in Baghdad. However, the rule of the dynasty was relatively short-lived. The Almoravids fell—at the height of their power—when they failed to stop the Masmuda-led rebellion initiated by Ibn Tumart. As a result, their last king Ishaq ibn Ali was killed in Marrakesh in April 1147 by the Almohad Caliphate, which replaced them as a ruling dynasty both in Morocco and Al-Andalus.
Title: Medieval Muslim Algeria
Content:  engaging in military conquest after 1054 and was led by Lamtuna leaders: first Yahya, then his brother Abu Bakr, and then his cousin Yusuf ibn Tashfin. With Marrakech as their capital, the Almoravids had conquered Morocco, the Maghrib as far east as Algiers, and Spain up to the Ebro River by 1106. Under the Almoravids, the Maghrib and Spain acknowledged the spiritual authority of the Abbasid caliphate in Baghdad, reuniting them temporarily with the Islamic community in the Mashriq. Although it was not an entirely peaceful time, North Africa benefited economically and culturally during the Almoravid period, which lasted until 1147. Muslim Spain (Andalus in Arabic) was a great source of artistic and intellectual inspiration. The most famous writers of Andalus worked in the Almoravid court, and the builders of the Grand Mosque of Tilimsan, completed in 1136, used as a model the Grand Mosque of Córdoba.
Title: History of Marrakesh
Content:  Marrakesh served as the capital of the vast Almoravid empire, which stretched over all of Morocco, western Algeria and southern Spain (al-Andalus). Because of the barrenness of its surroundings, Marrakesh remained merely a political and administrative capital under the Almoravids, never quite displacing bustling Aghmat, just thirty kilometres away, as a commercial or scholarly center. This began to change under the Almoravid emir Ali ibn Yusuf (r.1106-1142) ("Ben Youssef"), who launched a construction program to give Marrakesh a grander feel. Ali ibn Yusuf erected a new magnificent palace, along Andalusian design, on the western side of the city, connected by a corridor to the old Qasr al-Hajar 
Title: 1062
Content: The Almoravids overrun modern-day Morocco, and establish an intercontinental kingdom, stretching from Spain to Senegal. ; The Banu Khurasan, a vassal of the Hammdid Dynasty, begin to rule the north of Ifriqiya (modern Tunisia). ; Marrakech is founded by the Almoravids which becomes their capital. 
Title: Andalusia
Content:  other powers across the Mediterranean. A number of different Muslim dynasties of North African origin—notably Almoravid dynasty and Almohad dynasty—dominated a slowly diminishing Al-Andalus over the next several centuries. After the victory at the Battle of Sagrajas (1086) put a temporary stop to Castilian expansion, the Almoravid dynasty reunified Al-Andalus with its capital in Cordoba, ruling until the mid-12th century. The various Taifa kingdoms were assimilated. the Almohad dynasty expansion in North Africa weakened Al-Andalus, and in 1170 the Almohads transferred their capital from Marrakesh to Seville. The victory at the Battle of Las Navas de Tolosa (1212) marked the beginning of the end of the Almohad dynasty.
Title: Almoravid dynasty
Content:  The Almoravid period, along with the subsequent Almohad period, is considered one of the most formative stages of Moroccan and Moorish architecture, establishing many of the forms and motifs of this style that were refined in subsequent centuries. Manuel Casamar Perez remarks that the Almoravids scaled back the Andalusi trend towards heavier and more elaborate decoration which had developed since the Caliphate of Córdoba and instead prioritized a greater balance between proportions and ornamentation. The two centers of artistic production in the Islamic west before the rise of the Almoravids were Kairouan and Córdoba, both former capitals in the region which 

Question: What is the capital of Almoravid dynasty?
Answer: Marrakesh.
Marrakech, Morocco.
Marrakech.
Aghmat.