A study made by the Union of Islamic Communities of Spain demonstrated that there were more than 2,100,000 inhabitants of Muslim background living in Spain , accounting for 4–5% of the total population of Spain. The vast majority was composed of immigrants and descendants originating from the Maghreb (especially Morocco) and other African countries. More than 879,000 (42%) of them had Spanish nationality.