 During Almohad rule, Fez was a thriving merchant city, even though it was not a capital, and even became the largest city in the world during that time, with approximately 200,000 people living there.After defeating the Almohads in Morocco, the Marinids moved the capital from Marrakech back to Fez.This marked the beginning of the greatest period of the history for Fes el Bali.