The Visigoths took over Spain after defeating the Roman Empire, making Toledo their capital, until the Muslims invaded in 711 and established al-Andalus. For several centuries, Muslims, Jews, and different Christian groups coexisted and built significant architectural landmarks in al-Andalus's cities. By 1492, the Christians had fully reconquered Spain and divided society between privileged and non-privileged classes, while continuing Arab influences and constructing buildings in Romanesque and Gothic styles, especially in Andalusia where Islamic rule had most developed towns, cities, and culture.