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 cities grew in importance and Romanesque and Gothic structures were erected, maintaining Arab cultural influences in Andalusia.