The rise of the Almoravids in the 11th century brought about the foundation of a new capital at Marrakesh to the south, and the Almohads after them also kept Marrakesh as their center of power. Nonetheless, Fes remained the second city of their empires. The city's merchant economic activity and its intellectual influence continued to grow.