In 711, the Umayyads took over, and later groups from North Africa, called the Moors. At first the Moors ruled most of Spain but the reconquista slowly forced them out over seven centuries. They called the land Al-Andalus. They were Muslims, and Muslim Spain was the farthest western point of Islamic civilization. The Caliphate of Córdoba fell apart in the early 11th century and Muslim rulers sometimes fought each other when they were not fighting the Christians. Muslim Spain was focused on learning. The greatest library system outside Baghdad was also there.