Fez, Morocco financing sharifian families as a way to legitimize their (in essence secular) rule: From the 14th century onwards hundreds of families throughout Morocco claimed descent from Idris I, especially in Fez and the Rif mountains. In this regard they can be seen as the enablers of the latter sharifian dynasties of Morocco. The 1465 Moroccan revolt in 1465 overthrew the last Maranid sultan. In 1474 the Marinids were replaced by their relatives of the Wattasid dynasty, who faithfully (but for a large part unsuccessfully) continued Marinid policies. After the fall of the Marinids, the city remained the capital of Morocco
Economy of Morocco Morocco produces two-thirds of the grains (chiefly wheat, barley, and corn [maize]) needed for domestic consumption. Morocco exports citrus fruits and early vegetables to the European market. Its wine industry is developed, and the production of commercial crops (cotton, sugarcane, sugar beets, and sunflowers) is expanding. Newer crops such as tea, tobacco, and soybeans have passed the experimental stage, the fertile Gharb plain being favourable for their cultivation. Morocco is actively developing its irrigation potential that ultimately will irrigate more than 2.5 million acres (1 million hectares). Unreliable rainfall is a chronic problem that produces drought or sudden floods. In