Muhammad ibn Zakariya ar-Razi wrote in the 10th century that some Iranians had already settled in Spain, and Ibn Battuta later claimed the Iranians of Spain preferred to live in Granada because of its similarity to their homeland. However, the impetus for modern Iranian immigration to Spain came largely from the 1979 Iranian Revolution, as a result of which some Iranians came to Spain as political refugees.
A 1992 survey found that 31.7% worked in administrative jobs, 18.2% were professionals or technicians, 25.7% worked in trade, and another 11% worked in agriculture. The vast majority were between 25–54 years of age, and only one-fifth were women. This is actually a relatively large proportion of women compared to other Muslim migrant communities in Spain, which may be attributed to the fact that most Iranians in Spain are political, rather than economic migrants.
López García, Bernabé; Planet Contreras, Ana I. (2002), "Islam in Spain", in Hunter, Shireen, Islam, Europe's Second Religion: The New Social, Cultural, and Political Landscape, Greenwood, pp. 157–174, ISBN978-0-275-97608-8