Islam is the largest minority religion in Spain, with a history that goes back to Al-Andalus (711–1492) and a modern community shaped mainly by migration from Morocco since the 1970s. The most widely cited estimate puts the Muslim population at about 2.54 million people, roughly 5% of Spain's population, at the end of 2024. This page compiles the national and regional figures, how they are calculated, and why estimates differ. Last updated: November 2026.
Important: Spain's census and municipal register (padrón) do not ask people about their religion. Every figure below is an estimate, not an official count. See "Why Estimates Differ" below.
Key Facts: Muslims in Spain
| Indicator | Figure | Source |
|---|---|---|
| Estimated Muslim population | 2,542,498 | UCIDE / Observatorio Andalusí (2025 study) |
| Of whom hold Spanish nationality | ≈ 1.1 million | UCIDE (by naturalisation, birth, or origin in Ceuta and Melilla) |
| Of whom are foreign nationals | ≈ 1.4 million | UCIDE |
| Share of total population | ≈ 5% | UCIDE |
| Largest origin country | Morocco (36%) | UCIDE; followed by Pakistan, Senegal and Algeria |
| Mosques and prayer rooms | 1,766 (early 2025) | UCIDE |
| Islamic religion teachers hired | 311 | As reported from the UCIDE study |
How the Estimate Has Changed
| Year / Edition | Estimated Muslims | Share | Source |
|---|---|---|---|
| 2009 | ≈ 1.45 million | ≈ 3% | UCIDE |
| End of 2023 | ≈ 2.4 million (1.3 M foreign, 1.1 M Spanish) | ≈ 5% | UCIDE |
| End of 2024 | 2,542,498 | ≈ 5% | UCIDE |
| Early 2025 | 2.4 – 2.5 million | ≈ 5% | CEU CEFAS Demographic Observatory (independent estimate) |
The UCIDE figures show about 45% of Muslims in Spain now hold Spanish nationality, and a growing share are born or naturalised in the country.
Muslim Population by Region
Muslims are concentrated in the south-east and east of the country and around the large cities. The four regions below hold the largest numbers according to the 2025 UCIDE study. Ceuta and Melilla have the highest share of Muslims in their populations, while the north-west of the peninsula has the lowest presence.
| Region | Estimated Muslims |
|---|---|
| Catalonia | 694,046 |
| Andalusia | 417,139 |
| Community of Madrid | 323,700 |
| Valencian Community | 278,370 |
By city, Barcelona, Ceuta, Madrid and Melilla have the largest Muslim communities in absolute terms. Municipalities such as Salt (Girona), Níjar (Almería) and Talayuela (Cáceres) are cited for high local percentages. In Ceuta, UCIDE's 2022 edition counted 35,439 Muslims, most of them Spanish nationals.
Why Estimates Differ
- No official religion data. Spain's statistics office does not record religion in the municipal register or census.
- How UCIDE counts. The Observatorio Andalusí, part of the Union of Islamic Communities of Spain, cross-checks municipal registrations by nationality (countries with Muslim majorities), naturalised citizens, registered Islamic communities, and the situation in Ceuta and Melilla. This means it infers religion from origin and can include people who do not practise or identify as Muslim.
- Independent estimates. The CEU CEFAS observatory estimated 2.4–2.5 million at the start of 2025. An older Pew Research Center baseline, as cited in Spanish media, put the share at 2.6% in 2016, a different date and method.
- Religion in general. Survey data reported by infoLibre show 42% of Spanish adults outside any religious affiliation in 2025, and religious minorities together, Muslims included, at no more than 8% of adults.
Frequently Asked Questions
How many Muslims live in Spain?
The most cited estimate is 2,542,498 at the end of 2024 (UCIDE), about 5% of the population. Independent estimates give a similar range of 2.4–2.5 million.
Are most Muslims in Spain immigrants?
Slightly more than half are foreign nationals (about 1.4 million), but about 1.1 million, or around 45%, hold Spanish nationality, including people born in Spain and residents of Ceuta and Melilla.
Where do most Muslims in Spain come from?
Morocco is the largest origin group at about 36%, followed by Pakistan, Senegal and Algeria.
Which region has the most Muslims?
Catalonia (694,046), followed by Andalusia, Madrid and the Valencian Community. Ceuta and Melilla have the highest percentage of Muslims.
Does Spain's census count religion?
No. Official statistics do not record religion, so all figures come from estimates by organisations such as UCIDE and CEU CEFAS.
How is Islam recognised in Spain?
The Spanish Constitution guarantees religious freedom, and Spain signed a cooperation agreement with the Islamic Commission of Spain in 1992, covering areas such as religious education and places of worship.
Sources
- UCIDE / Observatorio Andalusí – Estudio demográfico de la población musulmana (data to 31/12/2023)
- Infovaticana – summary of the 2025 UCIDE study (national and regional figures)
- OKDiario – 2.4 million Muslims, 45% with Spanish nationality (UCIDE, end of 2023)
- El Debate – CEU CEFAS Demographic Observatory report, "Demografía del Islam en España" (2026)
- infoLibre – Pew Research Center data and religious affiliation in Spain
- Don Porqué – how the UCIDE figure is calculated
All figures are estimates, as Spain collects no official data on religion. The latest national estimate refers to the end of 2024; later editions will update it. Figures are rounded where sources report in millions.


