Morocco, officially the Kingdom of Morocco, is a country in the Maghreb region of North Africa. It has coastlines on the Mediterranean Sea to the north and the Atlantic Ocean to the west, and has land borders with Algeria to the east; the Spanish exclaves of Ceuta, Melilla and Peñón de Vélez de la Gomera along the north, which it claims together with several small Spanish-controlled islands; and the disputed territory of Western Sahara to the south, partly occupied by Morocco since 1975. Morocco also claims to share a border with Mauritania through the disputed territory of Western Sahara. It has a population of approximately 37 million. Islam is both the official and predominant religion, while Arabic and Berber are the official languages. Additionally, French and the Moroccan dialect of Arabic are widely spoken. The culture of Morocco is a mix of Arab, Berber, European (specifically Andalusian), and African cultures. Its capital is Rabat, while its largest city is Casablanca.
The region constituting Morocco has been inhabited since the Paleolithic era, more than 300,000 years ago. The Idrisid dynasty was established by Idris I in 788, and Morocco was subsequently ruled by a series of other independent dynasties, reaching its zenith as a regional power in the 11th and 12th centuries, under the Almoravid and Almohad dynasties, when it controlled most of the Iberian Peninsula and the Maghreb. Centuries of Arab migration to the Maghreb since the 7th century shifted the demographic scope of the region. In the 15th and 16th centuries, Morocco faced external threats to its sovereignty, with Portugal seizing some territory and the Ottoman Empire encroaching from the east. The Marinid and Saadi dynasties otherwise resisted foreign domination, and Morocco was the only North African nation to escape Ottoman dominion. The Saadi dynasty expanded its territory through the conquest of the Songhai Empire in the late 16th century. The Alawi dynasty, which rules the country to this day, seized power in 1631, and over the next two centuries expanded diplomatic and commercial relations with the Western world. Morocco's strategic location near the mouth of the Mediterranean drew renewed European interest. In 1912, France and Spain established protectorates over the country and designated Tangier as an international zone, while the Sultan remained the formal sovereign with limited authority under colonial control. Following intermittent riots and revolts against colonial rule, Morocco regained its independence and reunified in 1956 under the leadership of Sultan Mohammed V.
Since independence, Morocco has remained relatively stable. It has the fifth-largest economy in Africa and wields significant influence in both Africa and the Arab world; it is considered a middle power in global affairs and holds membership in the Arab League, the Arab Maghreb Union, the Union for the Mediterranean, and the African Union. It is one of the few countries in Africa ranking high on the Human Development Index and is Africa’s leading industrial economy. Morocco is a unitary semi-constitutional monarchy with an elected parliament. The executive branch is led by the King of Morocco and the prime minister, while legislative power is vested in the two chambers of parliament: the House of Representatives and the House of Councillors. Judicial power rests with the Constitutional Court, which may review the validity of laws, elections, and referendums. The king holds vast executive and legislative powers, especially over the military, foreign policy and religious affairs; he can issue dahirs, decrees which have the force of law, and he can also dissolve the parliament after consulting the prime minister and the president of the constitutional court. Morocco is classified as a hybrid regime and, as of 2025, ranks as the leading such system in the Arab world, according to The Economist Democracy Index.
Morocco claims ownership of the non-self-governing territory of Western Sahara, which it has designated its Southern Provinces. In 1975, after Spain agreed to decolonise the territory and cede its control to Morocco and Mauritania, a guerrilla war broke out between those powers and some of the local inhabitants. In 1979, Mauritania relinquished its claim to the area, but the war continued to rage. In 1991, a ceasefire agreement was reached, but the issue of sovereignty remained unresolved. Today, Morocco occupies about two-thirds of the territory, and efforts to resolve the dispute have thus far failed to break the political deadlock.
Etymology and name
The English Morocco is an anglicisation of the Spanish name for the country, , derived from the name of the city of Marrakesh, which was the capital of the Almoravid dynasty, the Almohad Caliphate, and the Saadian dynasty. During the Almoravid dynasty, the city of Marrakesh was established under the name of , derived from the city's ancient Berber name of (). In English, the first vowel has been changed, likely influenced by the word "Moor."
Morocco's modern Arabic name is (, ), with the Kingdom's official Arabic name being (; ).
Historically, Morocco has been part of what Muslim geographers referred to in Arabic as (, 'the Farthest West [of the Islamic world]' designating roughly the area from Tiaret to the Atlantic) in contrast with neighbouring regions of (, 'the Middle West': Tripoli to Béjaïa) and (, 'the Nearest West': Alexandria to Tripoli).
In Turkish, Morocco is known as , a name derived from its medieval capital of Fes (). In other parts of the Islamic world, for example in Egyptian and Middle Eastern Arabic literature before the mid-20th century, Morocco was commonly referred to as (). The term is still used to refer to Morocco today in several Indo-Iranian languages, including Persian, Urdu, and Punjabi.
Morocco has also been referred to politically by a variety of terms denoting the Sharifi heritage of the Alawi dynasty, such as (), () and (), rendered in French as and in English as the 'Sharifian Empire'.
History
Prehistory and antiquity
thumb|Iron Age petroglyph with [[Libyco-Berber alphabet|Libyco-Berber inscriptions, likely depicting a meteorite fall, found near the High Atlas village of Ida Ou Kazzou]]
The area of present-day Morocco has been inhabited since at least Paleolithic times, beginning sometime between 190,000 and 90,000 BC. A recent publication has suggested that there is evidence for even earlier human habitation of the area: Homo sapiens fossils that had been discovered in the late 2000s near the Atlantic coast in Jebel Irhoud were recently dated to roughly 315,000 years ago. Hominin fossils from Thomas Quarry I in Casablanca, published in 2026, push evidence of hominin presence in the region back to approximately 773,000 years ago, near the root of the Homo sapiens lineage. During the Upper Paleolithic, the Maghreb was more fertile than it is today, resembling a savanna, in contrast to its modern arid landscape.
DNA studies of Iberomaurusian peoples at Taforalt, Morocco dating to around 15,000 years ago have found them to have a distinctive Maghrebi ancestry formed from a mixture of Near Eastern and African ancestry, which is still found as a part of the genome of modern Northwest Africans. Later during the Neolithic, from around 7,500 years ago onwards, there was a migration into Northwest Africa of European Neolithic Farmers from the Iberian Peninsula (who had originated in Anatolia several thousand years prior), as well as pastoralists from the Levant, both of whom also significantly contributed to the ancestry of modern Northwest Africans. The proto-Berber tribes evolved from these prehistoric communities during the late Bronze- and early Iron ages.
Excavations at Oued Beht uncovered a Neolithic farming society dated to 3400–2900 BCE, the largest known agricultural complex in Africa outside the Nile Valley at that time. At Kach Kouch near the Strait of Gibraltar, Bronze Age occupation from 2200 BCE onward demonstrates settled agricultural life in the Maghreb centuries before Phoenician contact, by the 8th century BCE its inhabitants were selectively adopting Phoenician building techniques and crops while maintaining their own material culture.
In the early part of Classical Antiquity, indigenous communities in the region were already integrated into Mediterranean exchange networks when the Phoenicians established trading colonies and settlements, the most substantial of which were Chellah, Lixus, and Mogador.
thumb|right|upright=0.9|Roman ruins of the city of [[Volubilis, which once served as the capital of Mauretania and the Idrisids]]
Morocco later became a realm of the Northwest African civilisation of ancient Carthage, and part of the Carthaginian empire. The earliest known independent Moroccan state was the Berber kingdom of Mauretania, under King Baga. This ancient kingdom (not to be confused with the modern state of Mauritania) flourished around 225 BC or earlier. Mauretania became a client kingdom of the Roman Empire in 33 BC. Emperor Claudius annexed Mauretania directly in 44 AD, making it a Roman province ruled by an imperial governor (either a procurator Augusti, or a legatus Augusti pro praetore).
Christianity in Morocco appeared during the Roman times, when it was practiced by Berber Christians in Roman Mauretania Tingitana. During the Crisis of the Third Century, parts of Mauretania were reconquered by Berbers. By the late 3rd century, direct Roman rule had become confined to a few coastal cities, such as Septum (Ceuta) in Mauretania Tingitana and Cherchell in Mauretania Caesariensis. When, in 429 AD, the area was devastated by the Vandals, the Roman Empire lost its remaining possessions in Mauretania, and local Mauro-Roman kings assumed control of them. In the 530s, the Eastern Roman Empire, under Byzantine control, re-established direct imperial rule of Septum and Tingi, fortified Tingis and erected a church.
<span class="anchor" id="Foundation"></span><span class="anchor" id="Dynasties"></span><span class="anchor" id="Foundation and dynasties"></span> Foundation and dynasties
thumb|left|upright|[[Idrisid coin in Fes, 840]]
The Muslim conquest of the Maghreb that had begun during the mid-7th century was completed under the Umayyad Caliphate by 709. The caliphate introduced both Islam and the Arabic language to the area; this period also saw the beginning of a trend of Arab migration to the Maghreb which would last for centuries and effect a demographic shift in the region. While constituting part of the larger empire, Morocco was initially organised as a subsidiary province of Ifriqiya, with the local governors appointed by the Muslim governor in Kairouan.
The indigenous Berber peoples adopted Islam, but retained their customary laws. They also paid taxes and tribute to the new Muslim administration. The first independent Muslim state in the area of modern Morocco was the Kingdom of Nekor, an emirate in the Rif Mountains. It was founded by Salih I ibn Mansur in 710, as a client state to the Umayyad Caliphate. After the outbreak of the Berber Revolt in 739, the Berbers formed other independent states such as the Miknasa of Sijilmasa and the Barghawata.
thumb|[[University of al-Qarawiyyin|al-Qarawiyyin, founded in Fes in the 9th century, was a major spiritual, literary, and intellectual centre.]]
The founder of the Idrisid dynasty and the great-grandson of Hasan ibn Ali, Idris ibn Abdallah, had fled to Morocco after the massacre of his family by the Abbasids in the Hejaz. He convinced the Awraba Berber tribes to break their allegiance to the distant Abbasid caliphs and he founded the Idrisid dynasty in 788. The Idrisids established Fes as their capital and Morocco became a centre of Muslim learning and a major regional power. The Idrisids were ousted in 927 by the Fatimid Caliphate and their Miknasa allies. After Miknasa broke off relations with the Fatimids in 932, they were removed from power by the Maghrawa of Sijilmasa in 980.
thumb|right|The empire of the [[Almohad dynasty at its greatest extent, ]]
From the 11th century onward, a series of Berber dynasties arose. Under the Sanhaja Almoravid dynasty and the Masmuda Almohad dynasty, Morocco dominated the Maghreb, al-Andalus in Iberia, and the western Mediterranean region. From the 13th century onward the country saw a massive migration of the Banu Hilal Arab tribes. In the 13th and 14th centuries the Zenata Berber Marinids held power in Morocco and strove to replicate the successes of the Almohads through military campaigns in Algeria and Spain. They were followed by the Wattasids. In the 15th century, the Reconquista ended Muslim rule in Iberia, with Muslims and Jews fleeing to find refuge in Morocco. Portuguese efforts to control the Atlantic sea trade in the 15th century did not greatly affect the interior of Morocco, despite that the Portuguese managed to control some possessions on the Moroccan coast, while not venturing further afield inland.
In 1549, the region fell to successive Arab dynasties claiming descent from the Islamic prophet Muhammad: first the Saadi dynasty who ruled from 1549 to 1659, and then the Alawi dynasty, who have remained in power since the 17th century. Morocco faced aggression from Spain in the north, and the Ottoman Empire's allies pressing westward.
thumb|265x265px|The corpse of [[Sebastian, King of Portugal|King Sebastian of Portugal being presented before Sultan Ahmad al-Mansur after the Battle of Alcácer Quibir, which marked the end of Portugal's ruling Aviz dynasty|left]]thumb|The remains of the Saadi sultan [[Ahmad al-Mansur's 16th-century Badi' Palace]]
Under the Saadis, the sultanate ended the Portuguese Aviz dynasty in 1578 at the Battle of Alcácer Quibir. The reign of Ahmad al-Mansur brought new wealth and prestige to the Sultanate, and a large expedition to West Africa inflicted a crushing defeat on the Songhay Empire in 1591. However, managing the territories across the Sahara proved too difficult. Upon the death of al-Mansur, the country was divided among his sons.
thumb|The [[Mausoleum of Moulay Ismail|Mausoleum of Sultan Moulay Ismail in Meknès, near his tomb are two grandfather clocks which were gifted by King Louis XIV of France]]
After a period of political fragmentation and conflict during the decline of the Saadi dynasty, Morocco was finally reunited by the Alawi sultan al-Rashid in the late 1660s, who took Fez in 1666 and Marrakesh in 1668. The 'Alawis succeeded in stabilising their position, and while the kingdom was smaller than previous ones in the region, it remained quite wealthy. Against the opposition of local tribes Ismail Ibn Sharif (1672–1727) began to create a unified state. With his Riffian army, he re-occupied Tangier from the English who had abandoned it in 1684 and drove the Spanish from Larache in 1689. The Portuguese abandoned Mazagão, their last territory in Morocco, in 1769. However, the siege of Melilla against the Spanish ended in defeat in 1775.
Morocco was the first nation to recognise the fledgling United States of America as an independent nation in 1777, only a year after the country's founding. In the beginning of the American Revolution, American merchant ships in the Atlantic Ocean were subject to attacks by other fleets from the Barbary corsairs. On 20 December 1777, Morocco's Sultan Mohammed III declared that American merchant ships would be under the protection of the sultanate and could thus enjoy safe passage. The 1786 Moroccan–American Treaty of Friendship stands as the United States' oldest unbroken friendship treaty.
French and Spanish protectorates
thumb|The [[Treaty of Wad Ras after the Hispano-Moroccan War (1859–1860) bankrupted Morocco's national treasury, forcing the Makhzen to take on a British loan.]]
As Europe industrialised, Northwest Africa was increasingly prized for its potential for colonisation. France showed a strong interest in Morocco as early as 1830, not only to protect the border of its Algerian territory, but also because of the strategic position of Morocco with coasts on the Mediterranean and the open Atlantic. In 1860, a dispute over Spain's Ceuta enclave led Spain to declare war. Victorious Spain won a further enclave and an enlarged Ceuta in the settlement. In 1884, Spain created a protectorate in the coastal areas of Morocco.
thumb|left|[[Tangier's population in 1956 included 40,000 Muslims, 31,000 Europeans and 15,000 Jews.]]
In 1904, France and Spain carved out zones of influence in Morocco. Recognition by the United Kingdom of France's sphere of influence provoked a strong reaction from the German Empire; and a crisis loomed in 1905. The matter was resolved at the Algeciras Conference in 1906. The Agadir Crisis of 1911 increased tensions between European powers. The 1912 Treaty of Fez made Morocco a protectorate of France, and triggered the 1912 Fez riots. Spain continued to operate its coastal protectorate. By the same treaty, Spain assumed the role of protecting power over the northern coastal and southern Saharan zones.
thumb|Map depicting the [[French conquest of Morocco from 1907 to 1934]]
Tens of thousands of colonists entered Morocco. Some bought up large amounts of rich agricultural land, while others organised the exploitation and modernisation of mines and harbours. Interest groups that formed among these elements continually pressured France to increase its control over Morocco – with some Moroccan tribes allying with the French against other competing tribes from early on in its conquest. The French colonial administrator, general Marshal Hubert Lyautey, sincerely admired Moroccan culture and succeeded in imposing a joint Moroccan-French administration, while creating a modern school system. Several divisions of Moroccan soldiers (Goumiers or regular troops and officers) served in the French army in both World War I and World War II, and in the Spanish Nationalist Army in the Spanish Civil War and after (Regulares). The institution of slavery was abolished in 1925.
Between 1921 and 1926, an uprising in the Rif Mountains, led by Abd el-Krim, led to the establishment of the Republic of the Rif. The Spanish used anti-civilian bombing raids and mustard gas to prevent the Rif republic from gaining independence. They lost more than 13,000 soldiers at Annual in July–August 1921 alone. The Riffi were eventually suppressed by 1927 by the Franco-Spanish military. The casualties on the Spanish-French side were 52,000, while approximately 10,000 Riffians died.
thumb|300x300px|Monument in memory of the [[Proclamation of Independence of Morocco|Proclamation of Independence of 1944 in Salé]]
In 1943, the Istiqlal Party (Independence Party) was founded to press for independence, with discreet US support. Moroccan nationalists drew heavily on transnational activist networks for lobbying to end colonial rule, primarily at the United Nations. The Istiqlal Party subsequently provided most of the leadership for the nationalist movement.
thumb|upright|King [[Mohammed V of Morocco|Mohammed V during a visit to the United States in 1957]]
France's exile of Sultan Mohammed V in 1953 to Madagascar and his replacement by the unpopular Mohammed Ben Aarafa sparked active opposition to the French and Spanish protectorates. The most notable violence occurred in Oujda where Moroccans attacked French and other European residents in the streets. France allowed Mohammed V to return in 1955, and the negotiations that led to Moroccan independence began the following year. In March 1956 Morocco regained its independence from France as the Kingdom of Morocco. A month later, Spain forsook its protectorate in northern Morocco to the new state but kept its two coastal-Mediterranean enclaves (Ceuta and Melilla, which dated from earlier conquests), over which Morocco still claims sovereignty to this day.
Post-independence
Sultan Mohammed became King in 1957. Upon the death of Mohammed V, Hassan II became King of Morocco on 3 March 1961. Morocco held its first general elections in 1963. However, Hassan declared a state of emergency and suspended parliament in 1965. In 1971 and 1972, there were two failed attempts to depose the king and establish a republic. A truth commission set up in 2005 to investigate human rights abuses during his reign confirmed nearly 10,000 cases, ranging from death in detention to forced exile. Some 592 people were recorded killed during Hassan's rule according to the truth commission.
In 1963, the Sand War was fought between Algerian and Moroccan troops over Moroccan claims to parts of Algerian territory. A formal peace agreement was signed in February 1964; however, relations remained strained between the two countries following the conflict. The Spanish enclave of Ifni in the south was returned to Morocco in 1969.
The Polisario movement was formed in 1973, with the aim of establishing an independent state in the Spanish Sahara. On 6 November 1975, King Hassan asked for volunteers to cross into the Spanish Sahara. Some 350,000 civilians were reported as being involved in the "Green March". A month later, Spain agreed to leave the Spanish Sahara, soon to become Western Sahara, and to transfer it to joint Moroccan-Mauritanian control, despite the objections and threats of military intervention by Algeria. Moroccan forces occupied the territory. Algerian authorities have estimated the number of Sahrawi refugees in Algeria to be 165,000. Diplomatic relations with Algeria were restored in 1988. In 1991, a UN-monitored ceasefire began in Western Sahara, but the territory's status remains undecided and ceasefire violations are reported. The following decade saw much wrangling over a proposed referendum on the future of the territory but the deadlock was not broken.
thumb|left|Map of the [[Western Sahara War (1975–1991)]]
Political reforms in the 1990s resulted in the establishment of a bicameral legislature with Morocco's first opposition-led government coming to power. King Hassan II died in 1999 and was succeeded by his son, Mohammed VI. He is a cautious moderniser who has introduced economic and social liberalisation. Mohammed VI paid a controversial visit to the Western Sahara in 2002. Morocco unveiled an autonomy blueprint for Western Sahara to the United Nations in 2007. The Polisario rejected the plan and put forward its own proposal. Morocco and the Polisario Front held UN-sponsored talks in New York City but failed to come to any agreement. In 2010, security forces stormed a protest camp in the Western Sahara, triggering violent demonstrations in the regional capital El Aaiún.
thumb|[[Mohammed VI of Morocco|Mohammed VI and other world leaders and representatives attend the Armistice Day centenary in November 2018.]]
In 2002, Morocco and Spain agreed to a US-brokered resolution over the disputed island of Perejil. Spanish troops had taken the normally uninhabited island after Moroccan soldiers landed on it and set up tents and a flag. There were renewed tensions in 2005, as dozens of African migrants stormed the borders of the Spanish enclaves of Melilla and Ceuta. In response, Spain deported dozens of the illegal migrants to Morocco from Melilla. In 2006, the Spanish Premier Zapatero visited Spanish enclaves. He was the first Spanish leader in 25 years to make an official visit to the territories. The following year, Spanish King Juan Carlos I visited Ceuta and Melilla, further angering Morocco which demanded control of the enclaves.
During the 2011–2012 Moroccan protests, thousands of people rallied in Rabat and other cities calling for political reform and a new constitution curbing the powers of the king. In July 2011, the King won a landslide victory in a referendum on a reformed constitution he had proposed to placate the Arab Spring protests. In the first general elections that followed, the moderate Islamist Justice and Development Party won a plurality of seats, with Abdelilah Benkirane being designated as head of government per the new constitution. Despite the reforms made by Mohammed VI, demonstrators continued to call for deeper reforms. Hundreds took part in a trade union rally in Casablanca in May 2012. Participants accused the government of failing to deliver on reforms.
On 24 August 2021, neighbouring Algeria cut diplomatic relations with Morocco, accusing Morocco of supporting a separatist group and hostile actions against Algeria. Morocco called the decision unjustified. Foreign Minister Ramtane Lamamra accused Morocco of using Pegasus spyware against its officials. Amnesty International found that two phones of Sahraoui human rights defender Aminatou Haidar were infected in November 2021.
On 10 December 2020, the Israel–Morocco normalisation agreement was announced, and Morocco announced its intention to resume diplomatic relations with Israel. Joint Declaration of the Kingdom of Morocco, the United States of America and the State of Israel was signed on 22 December 2020. The agreement was met with criticism due to the October 2023 Gaza war. Moroccan Foreign Minister Nasser Bourita argues that maintaining relations does not signify endorsement of the State of Israel’s actions.
On 8 September 2023, a 6.8 magnitude earthquake hit Morocco killing more than 2,800 people and injuring thousands. The epicentre of the quake was around 70 km southwest of city of Marrakesh.
The 2025 Moroccan protests emerged against a backdrop of high youth unemployment, which official statistics placed at 35.8%, in addition to allegations of corruption and popular discontent over social inequality in Morocco.
Geography
thumb|[[Toubkal, the highest peak in Northern Africa, at ]]
thumb|A section of the [[Anti-Atlas near Tafraout]]
thumb|upright|An old [[Cedrus atlantica|Atlas cedar tree in the Atlas range]]
Morocco has a coast on the Atlantic Ocean that reaches past the Strait of Gibraltar into the Mediterranean Sea. It is bordered by Spain to the north (a water border through the Strait and land borders with three small Spanish-controlled exclaves, Ceuta, Melilla, and Peñón de Vélez de la Gomera), Algeria to the east, and Western Sahara to the south. Since Morocco controls most of Western Sahara, its de facto southern border is with Mauritania. The geography of Morocco spans from the Atlantic Ocean, to mountainous areas, to the Sahara desert. Morocco is a Northern African country, bordering the North Atlantic Ocean and the Mediterranean Sea, between Algeria and the annexed Western Sahara. Morocco is one of only three countries (along with Spain and France) to have both Atlantic and Mediterranean coastlines.
A large part of Morocco is mountainous. The Atlas Mountains are located mainly in the centre and the south of the country. The Rif Mountains are located in the north of the country. Both ranges are mainly inhabited by the Berber people. Its total area is about . Algeria borders Morocco to the east and southeast, though the border between the two countries has been closed since 1994. The internationally recognised borders of the country lie between latitudes 27° and 36°N, and longitudes 1° and 14°W. Morocco's capital city is Rabat, a city that is beside the Oued Bou Regreg River; its largest city is its main port, Casablanca. Other cities recording a population over 500,000 in the 2014 Moroccan census are Fes, Marrakesh, Meknes, Salé and Tangier.
The Rif Mountains stretch over the region bordering the Mediterranean from the northwest to the northeast. The Atlas Mountains run down the backbone of the country, from the northeast to the southwest. Most of the southeast portion of the country is in the Sahara Desert and as such is generally sparsely populated and unproductive economically. Most of the population lives to the north of these mountains, with Morocco's largest cities encapsulated by the Middle Atlas and the High Atlas mountain range, while to the south lies the Western Sahara, a former Spanish colony that was annexed by Morocco in 1975 during the Green March. Morocco claims that the Western Sahara is part of its territory and refers to that as its Southern Provinces. This code was used as the basis for Morocco's internet domain, .ma.
Central mountain ranges and the effects of the cold Canary Current, off the Atlantic coast, are significant factors in Morocco's relatively large variety of vegetation zones, ranging from lush forests in the northern and central mountains, giving way to steppe, semi-arid and desert areas in the eastern and southern regions. The Moroccan coastal plains experience moderate temperatures even in summer.
In the Rif, Middle and High Atlas Mountains, there exist several different types of climates: Mediterranean along the coastal lowlands, giving way to a humid temperate climate at higher elevations with sufficient moisture to allow for the growth of different species of oaks, moss carpets, junipers, and Atlantic fir which is a royal conifer tree endemic to Morocco. In the valleys, fertile soils and high precipitation allow for the growth of thick and lush forests. Cloud forests can be found in the west of the Rif Mountains and Middle Atlas Mountains. At higher elevations, the climate becomes alpine in character, and can sustain ski resorts.
In contrast to the Sahara region in the south, coastal plains are fertile in the central and northern regions of the country, and comprise the backbone of the country's agriculture, in which 95% of the population live. The direct exposure to the North Atlantic Ocean, the proximity to mainland Europe and the long stretched Rif and Atlas mountains are the factors of the rather European-like climate in the northern half of the country. That makes Morocco a country of contrasts. Forested areas cover about 12% of the country while arable land accounts for 18%. Approximately 5% of Moroccan land is irrigated for agricultural use.
thumb|Landscape of the [[Erg Chebbi]]
thumb|[[Atlas Mountains]]
In general, apart from the southeast regions (pre-Saharan and desert areas), Morocco's climate and geography are very similar to the Iberian peninsula. Thus Morocco has the following climate zones:
- Mediterranean: Dominates the coastal Mediterranean regions of the country, along the (500 km strip), and some parts of the Atlantic coast. Summers are hot to moderately hot and dry, average highs are between and . Winters are generally mild and wet, daily average temperatures hover around to , and average low are around to , typical to the coastal areas of the west Mediterranean. Annual Precipitation in this area varies from 600 to 800 mm in the west to 350–500 mm in the east. Notable cities that fall into this zone are Tangier, Tétouan, Al Hoceima, Nador and Safi.
- Sub-Mediterranean: It influences cities that show Mediterranean characteristics, but remain fairly influenced by other climates owing to their either relative elevation, or direct exposure to the North Atlantic Ocean. There are thus two main influencing climates:
:* Oceanic: Determined by the cooler summers, where highs are around and in terms of the Essaouira region, are almost always around . The medium daily temperatures can get as low as , while winters are chilly to mild and wet. Annual precipitation varies from 400 to 700 mm. Notable cities that fall into this zone are Rabat, Casablanca, Kénitra, Salé and Essaouira.
Climate change is expected to significantly impact Morocco on multiple dimensions. As a coastal country with hot and arid climates, environmental impacts are likely to be wide and varied. As of the 2019 Climate Change Performance Index, Morocco was ranked second in preparedness behind Sweden.
Biodiversity
thumb|An adult male [[Barbary macaque carrying his offspring, a behaviour rarely found in other primates]]
thumb|The [[Caracal]]
Morocco has a wide range of biodiversity. It is part of the Mediterranean basin, an area with exceptional concentrations of endemic species undergoing rapid rates of habitat loss, and is therefore considered to be a hotspot for conservation priority. Avifauna are notably variant. The avifauna of Morocco includes a total of 454 species, five of which have been introduced by humans, and 156 are rarely or accidentally seen. Morocco is home to six terrestrial ecoregions: Mediterranean conifer and mixed forests, Mediterranean High Atlas juniper steppe, Mediterranean acacia-argania dry woodlands and succulent thickets, Mediterranean dry woodlands and steppe, Mediterranean woodlands and forests and North Saharan steppe and woodlands.
The Barbary lion, hunted to extinction in the wild, was a subspecies native to Morocco and is a national emblem. The other two primary predators of northern Africa, the Atlas bear and Barbary leopard, are now extinct and critically endangered, respectively. Relic populations of the West African crocodile persisted in the Draa river until the 20th century. The Barbary macaque, a primate endemic to Morocco and Algeria, is also facing extinction due to offtake for trade human interruption, urbanisation, wood and real estate expansion that diminish forested area—the macaque's habitat.
Trade of animals and plants for food, pets, medicinal purposes, souvenirs and photo props is common across Morocco, despite laws making much of it illegal. This trade is unregulated and causing unknown reductions of wild populations of native Moroccan wildlife. Because of the proximity of northern Morocco to Europe, species such as cacti, tortoises, mammal skins, and high-value birds (falcons and bustards) are harvested in various parts of the country and exported in appreciable quantities, with especially large volumes of eel harvested – 60 tons exported to the Far East in the period 2009‒2011.
Government and politics
thumb|upright|The [[King of Morocco, Mohammed VI]]
As reported in 2022 by The Economist Democracy Index, Morocco is classified as a hybrid regime, ranking third in the MENA region and 95th globally in democracy quality. Morocco was given a "difficult" ranking in the 2023 World Press Freedom Index.
Following the March 1998 elections, a coalition government headed by the parliamentary opposition and socialist leader Abderrahmane Youssoufi was formed, composed largely of ministers drawn from opposition parties. Prime Minister Youssoufi's government was the country's first-ever government drawn primarily from opposition parties. Also, it represented the first opportunity for a coalition of socialists, left-of-centre, and nationalist parties to be included in the government until October 2002. It was also the first time in modern Arab political history that a parliamentary opposition coalition assumed power following an election. , the current government is headed by Aziz Akhannouch.
The Constitution of Morocco provides for a monarchy with a Parliament and an independent judiciary. With the 2011 constitutional reforms, the King of Morocco retains fewer executive powers, whereas the prime minister's powers have been enlarged. The constitution endows the king with honorific powers, among others; he serves as both the country's secular political leader and Amir al-Mu'minin (Commander of the Faithful), directly descended from the prophet Mohammed. He chairs the Council of Ministers, selects the prime minister from the party with the most parliamentary seats, and, based on the latter's recommendations, appoints government members.
The constitution of 1996 theoretically allowed the king to terminate the tenure of any minister, and after consultation with the heads of the higher and lower Assemblies, to dissolve the parliament, suspend the constitution, call for new elections, or rule by decree. The only time this happened was in 1965. The King is formally the commander-in-chief of the armed forces.
Legislative branch
thumb|The legislature's building in Rabat
Since the 1996 constitutional reform, the bicameral legislature consists of two chambers. The Assembly of Representatives of Morocco (Majlis an-Nuwwâb/Assemblée des Répresentants) has 395 members elected for a five-year term, 305 elected in multi-seat constituencies and 90 in national lists consisting of women and youth.
The Assembly of Councillors (Majlis al-Mustasharin) has 120 members, elected for a six-year term. Seventy-two members are elected at the regional level, 20 members are elected from trade unions, eight seats from professional organisations, and 20 from wage-earners.
Although relatively limited, the Parliament's powers were expanded under a series of constitutional revisions (1992, 1996, and 2011), to include budgetary matters, approvals of bills, questioning ministers, and establishing ad hoc commissions of inquiry to investigate the state's actions. The Lower Chamber of Parliament may dissolve the government through a vote of no confidence.
The latest parliamentary elections were held on 8 September 2021. During the elections, voter turnout was estimated at 50.35% (among registered voters).
Administrative divisions
thumb|The administrative regions of Morocco
Morocco is officially divided into 12 regions (including 3 of them encompassing partially or totally the Moroccan-occupied Western Sahara), which, in turn, are subdivided into 62 provinces and 13 prefectures.
Regions in Morocco
- Tanger-Tétouan-Al Hoceima
- Oriental
- Fès-Meknès
- Rabat-Salé-Kénitra
- Béni Mellal-Khénifra
- Casablanca-Settat
- Marrakesh-Safi
- Drâa-Tafilalet
- Souss-Massa
Regions in Moroccan-occupied Western Sahara (partially or totally)
- Guelmim-Oued Noun
- Laâyoune-Sakia El Hamra
- Dakhla-Oued Ed-Dahab
Foreign relations
Morocco is a member of the United Nations and belongs to the African Union (AU), Arab League, Arab Maghreb Union (UMA), Organisation of Islamic Cooperation (OIC), the Non-Aligned Movement and the Community of Sahel–Saharan States (CEN–SAD). Morocco's relationships vary greatly between African, Arab, and Western states. Morocco has had strong ties to the West in order to gain economic and political benefits. France and Spain remain the primary trade partners, as well as the primary creditors and foreign investors in Morocco. Among total foreign investments in Morocco, the European Union accounts for approximately 73.5%, whereas the Arab world accounts for 19.3%. Persian Gulf and neighbouring Maghreb countries are becoming more involved in large-scale projects in Morocco.
thumb|upright=1.3|Morocco claims sovereignty over Spanish enclaves of [[Ceuta and Melilla.]]In 2002, a dispute with Spain over the small island of Perejil arose, which brought attention to the issue of the sovereignty of Melilla and Ceuta. These small enclaves on the Mediterranean coast are surrounded by Morocco and have been under Spanish administration for centuries.
In 2004, the George W. Bush administration granted Morocco the status of major non-NATO ally. Morocco was the first country in the world to recognise US sovereignty, in 1777. After gaining independence, Morocco established strong ties with the United States, receiving significant economic and military aid.
Morocco's membership in the African Union has been marked by significant events. In 1984, Morocco withdrew from the organisation after it admitted the Sahrawi Arab Democratic Republic in 1982 without conducting a referendum of self-determination in the disputed territory of Western Sahara. This decision was made unilaterally by Morocco. However, in 2017, Morocco rejoined the AU, signalling a shift in its diplomatic stance. In November 2020, Brahim Ghali, leader of the Polisario Front and the Sahrawi president, unilaterally ended a 29-year ceasefire agreement with Morocco, which the United Nations had overseen. In December 2020, Morocco had started to pursue military cooperation with Israel from a normalisation agreement. Algeria backs the Polisario Front of Morocco's breakaway state, the Western Sahara. In August 2021, Algeria severed diplomatic relations with Morocco. Algerian authorities have accused Rabat of supporting the Movement for the Self-Determination of Kabylie (MAK), which it classifies as a terrorist organisation. A United Nations mission, MINURSO, is tasked with organising a referendum on whether the territory should become independent or recognised as a part of Morocco.
Part of the territory, the Free Zone, is a mostly uninhabited area that the Polisario Front controls as the Sahrawi Arab Democratic Republic. Its administrative headquarters are located in Tindouf, Algeria. , no UN member state had recognised Moroccan sovereignty over Western Sahara. In 2006, the government of Morocco suggested autonomous status for the region through the Moroccan Royal Advisory Council for Saharan Affairs (CORCAS). The project was presented to the United Nations Security Council in mid-April 2007. Moroccan allies, including the United States, France, and Spain, supported the proposal. The Security Council has called upon the parties to enter into direct and unconditional negotiations to reach a mutually accepted political solution.
In 2020, the United States became the first Western country to back Morocco's contested sovereignty over the disputed Western Sahara region, on the agreement that Morocco would simultaneously normalise relations with Israel.
Military
thumb|Mohammed VI, a [[FREMM multipurpose frigate of the Royal Moroccan Navy]]
Morocco's military consists of the Royal Armed Forces—this includes the Army (the largest branch), the Navy, the Air Force, the Royal Guard, the Royal Gendarmerie and the Auxiliary Forces. Internal security is generally effective, and acts of political violence are rare (with one exception, the 2003 Casablanca bombings which killed 45 people).
The UN maintains a small observer force in Western Sahara, where a large number of Moroccan troops are stationed. The Sahrawi Polisario Front maintains an active militia of an estimated 5,000 fighters in Western Sahara and has engaged in intermittent warfare with Moroccan forces since the 1970s.
Human rights
During the early 1960s to the late 1980s, under the leadership of Hassan II, Morocco had one of the worst human rights records in both Africa and the world. Government repression of political dissent was widespread during Hassan II's leadership, until it dropped sharply in the mid-1990s. The decades during which abuses were committed are referred to as the Years of Lead (les années de plomb), and included forced disappearances, assassinations of government opponents and protesters, and secret internment camps such as Tazmamart. To examine abuses committed during the reign of King Hassan II (1961–1999), the government under King Mohammed VI established the Equity and Reconciliation Commission (IER).
According to a Human Rights Watch annual report in 2016, Moroccan authorities restricted the rights to peaceful expression, association, and assembly through several laws. The authorities continue to prosecute both printed and online media that criticise the government or the king (or the royal family). There are also persistent allegations of violence against both Sahrawi pro-independence and pro-Polisario demonstrators in Western Sahara; a disputed territory which is occupied by and considered by Morocco as part of its Southern Provinces. Morocco has been accused of detaining Sahrawi pro-independence activists as prisoners of conscience.
Homosexual acts, as well as extra-marital sex, are unlawful in Morocco, and can be punishable by six months to three years of imprisonment. It is illegal to proselytise for any religion other than Islam (Article 220 of the Moroccan Penal Code), and that crime is punishable by a maximum of 15 years of imprisonment. Violence against women and sexual harassment have been criminalised. The penalty can be from one month to five years, with fines ranging from $200 to $1,000. It is also a criminal offence in Morocco to undermine the monarchy; in August 2023, a Moroccan resident of Qatar was sentenced to five years' imprisonment for criticising the King's policy decisions on Facebook.
Economy
thumb|left|[[Casablanca Finance City]]
Morocco's economy is considered a liberal economy, governed by the law of supply and demand. Since 1993, the country has followed a policy of privatisation of certain economic sectors which used to be in the hands of the government. Morocco has become a major player in African economic affairs, and is the sixth largest economy in Africa by GDP (PPP). Morocco was ranked as the first African country by the Economist Intelligence Unit's quality-of-life index, ahead of South Africa. However, in the years since that first-place ranking was given, Morocco has slipped into fourth place behind Egypt.
In 2025, Morocco became Africa's leading industrial economy according to the African Development Bank, overtaking South Africa for the first time since the ranking began. Between 2000 and 2019, the share of Moroccan workers in agriculture declined, while those that are in industry increased.
Tourism
thumb|The [[Jemaa el-Fnaa in Marrakesh]]
thumb|[[Amazigh fibula|Amazigh fibula, ceramic vases, Koummya (dagger) and typical lantern]]
Tourism is one of the most important sectors in the Moroccan economy. It is a strong tourist industry focused on the country's coast, culture, and history. In 2022, tourism in Morocco had surpassed the average number of visitors in the 2010s, while setting an all-time high in 2023 with 14.5 million international tourist arrivals and MAD 104.7 billion in receipts. In November 2024, Morocco had nearly 16 million tourists visiting that contributed to 7% of its GDP. It is a base for tours to the Atlas Mountains.
Large government-sponsored marketing campaigns to attract tourists advertised Morocco as an inexpensive and exotic, yet safe, place for tourists. Most of the visitors to Morocco continue to be European, with French nationals making up almost 20% of all visitors. Most Europeans visit between April and August. Casablanca is the major cruise port in Morocco, and has a developed market for tourists in Morocco. The Majorelle botanical garden in Marrakesh is a popular tourist attraction. It was bought by the fashion designer Yves Saint-Laurent and Pierre Bergé in 1980. , activity and adventure tourism in the Atlas and Rif Mountains are the fastest growth area in Moroccan tourism. These locations have walking and trekking opportunities from late March to mid-November. The Moroccan government is investing in trekking circuits. It is also developing desert tourism, in competition with Tunisia.
Agriculture
Infrastructure
thumb|left|[[Al Boraq RGV2N2 high-speed trainset at Tanger-Ville railway station in November 2018]]
According to the Global Competitiveness Report of 2019, Morocco Ranked 32nd in the world in terms of Roads, 16th in Sea, 45th in Air and 64th in Railways. This gives Morocco the best infrastructure rankings in the African continent. To meet the growing domestic demand, the Moroccan government invested more than $15 billion from 2010 to 2015 in upgrading its basic infrastructure. Morocco also has the largest port in Africa and the Mediterranean, Tanger-Med, which is ranked the 18th in the world with a handling capacity of over 9 million containers. It is situated in the Tangier free economic zone and serves as a logistics hub for Africa and the world.
In 2014, Morocco began the construction of the first high-speed railway system in Africa linking the cities of Tangier and Casablanca. It was inaugurated in 2018 by the King following over a decade of planning and construction by Moroccan national railway company Office National des Chemins de Fer (ONCF). It is the first phase of what is planned to eventually be a 1,500 kilometres (930 mi) high-speed rail network in Morocco. An extension of the line to Marrakesh is already being planned. The Moroccan Ministry of Equipment, Transport and Logistics aims to build an additional 3,380 kilometres of expressway and 2,100 kilometres of highway by 2030 with SNCF; the project came at an expected cost of US$9.6 billion. The project also involved purchasing 18 high-speed trains and 150 multi-service trains.
Energy
thumb|[[Solar cell panels in eastern Morocco]]
In 2008, about 56% of Morocco's electricity supply was provided by coal. However, as forecasts indicate that energy requirements in Morocco will rise 6% per year between 2012 and 2050, a new law passed encouraging Moroccans to look for ways to diversify the energy supply, including more renewable resources. The Moroccan government has launched a project to build a solar thermal energy power plant and is also looking into the use of natural gas as a potential source of revenue for Morocco's government. On 17 April 2022, Rabat-Moroccan agency for solar energy (Masen) and the ministry of energy transition and sustainable development announced the launch of phase one of the mega project Nor II solar energy plant which is a multi-site solar energy project with a total capacity set at 400 megawatts (MN).
Narcotics
thumb|Cannabis field at Ketama Tidighine mountain, Morocco
Since the 7th century, cannabis has been cultivated in the Rif region. In 2004, according to the UN World Drugs Report, cultivation and transformation of cannabis represents 0.57% of the national GDP of Morocco in 2002. According to a French Ministry of the Interior 2006 report, 80% of the cannabis resin (hashish) consumed in Europe comes from the Rif region in Morocco, which is mostly mountainous terrain in the north of Morocco, also hosting plains that are very fertile and expanding from Melwiyya River and Ras Kebdana in the East to Tangier and Cape Spartel in the West. Also, the region extends from the Mediterranean in the south, home of the Wergha River, to the north. In addition, Morocco is a transit point for cocaine from South America destined for Western Europe.
Water supply and sanitation
Water supply and sanitation in Morocco are provided by a wide array of utilities. They range from private companies in the largest city—Casablanca, Rabat, and two other cities—to public municipal utilities in 13 other cities, as well as a national electricity and water company. Morocco's Office National de l'Eau Potable (ONEP) is in charge of bulk water supply in about 500 towns. According to a study by the National Liquid Sanitation Master Plan (SNDAL) that started in 1994, only 15 of their 63 treatment plants are operational, and out of approximately 500million cubic meters of wastewater generated annually, 95% is discharged untreated into natural water bodies. The issue of lack of water connections for some of the urban poor is being addressed as part of the National Human Development Initiative, under which residents of informal settlements have received land titles and have fees waived that are normally paid to utilities in order to connect to the water and sewer network. An investment programme of about MAD 15 billion was made to cover the centres managed by ONEP from 2003–2017.
Science and technology
thumb|Campus of the [[Mohammed VI Polytechnic University in Benguerir|295x295px]]
The Moroccan government has been implementing reforms to improve the quality of education and make research more responsive to socio-economic needs. In May 2009, Morocco's prime minister, Abbas El Fassi, announced that investment in science and technology would rise from US$620,000 in 2008 to US$8.5 million (69 million Moroccan dirhams) in 2009 to finance the laboratories construction, training courses for researchers and a scholarship programme for science during a meeting at the National Centre for Scientific and Technical Research. Morocco was ranked 67th in the Global Innovation Index in 2025, an increase in ranking from 2020 at 75th.
The Moroccan Innovation Strategy was launched at the country's first National Innovation Summit in June 2009 by the Ministry of Industry, Commerce, Investment and the Digital Economy. The Moroccan Innovation Strategy fixed the target of producing 1,000 Moroccan patents and creating 200 innovative start-ups by 2014. In 2012, Moroccan inventors applied for 197 patents, up from 152 two years earlier. In 2011, the Ministry of Industry, Commerce and New Technologies created a Moroccan Club of Innovation, in partnership with the Moroccan Office of Industrial and Commercial Property. The idea is to create a network of players in innovation to help them develop innovative projects.
The Ministry of Higher Education and Scientific Research is supporting research in advanced technologies. The Moroccan Phosphate Office (Office chérifien des phosphates) has invested in a project to develop a smart city, King Mohammed VI Green City, around Mohammed VI University located between Casablanca and Marrakesh, at a cost of DH 4.7 billion (circa US$479 million). In 2012, the Hassan II Academy of Sciences and Technologies identified a number of sectors where Morocco has a comparative advantage and skilled human capital, including mining, fisheries, food chemistry and new technologies. It also identified a number of strategic sectors, such as renewable energies, health sectors, the environment and geosciences.
On 20 May 2015 – less than a year post its inception – the Higher Council for Education, Training and Scientific Research presented a report to the King offering a Vision for Education in Morocco 2015–2030. The report advocated making education egalitarian and, thus, accessible to the greatest number. The report also recommended developing an integrated national innovation system which would be financed by gradually increasing the share of GDP devoted to research and development (R&D) from 0.73% of GDP in 2010 to '1% in the short term, 1.5% by 2025 and 2% by 2030'.
In 2024, Morocco's population is among the top four most-connected to the Internet in continental Africa, by number of population. In 2022, the number of Internet users in Morocco reached around 31.6 million. Later, as of January 2024, Morocco had approximately 34.5 million internet users; it has a penetration rate of about 90.7%. Morocco has several Internet-related projects; an example of such is the National Digital Development Strategy 2030. In 2024, as part of another program called the Connected Campus, the American wireless network provider Cambium Networks deployed 18,000 Wi-Fi access points for public universities in Morocco.<!-- Move if in inappropriate section! -->
Demographics
Population
Morocco has a population of around inhabitants ( estimate). Morocco's population was 11.6 million in 1960. In 2024, 49.7% of the population is female, while 50.3% of it is male. There are also a number of foreign residents of Spanish origin. Some of them are descendants of colonial settlers, who primarily work for European multinational companies, while others are married to Moroccans or are retirees. Prior to independence, Morocco was home to half a million Europeans, most of whom were Christians. Also, prior to independence, Morocco was home to 250,000 Spaniards. Morocco's once prominent Jewish minority has decreased significantly since its peak of 265,000 in 1948, declining to around 3,500 in 2022.
Morocco has a large diaspora, most of which is located in France, which has reportedly more than one million Moroccans (up to the third generation). There are also large Moroccan communities in Spain (about 700,000 Moroccans), the Netherlands (360,000), and Belgium (300,000). Other large communities can be found in Italy, Canada, the United States, and Israel, where Moroccan Jews are thought to constitute the second-largest Jewish ethnic subgroup.
Ethnic groups
In Morocco, ethnic identity is deeply intertwined with language and culture, with the population primarily comprising two major groups: Arabs and Berbers. Morocco is the country with the largest Berber population in the world. Morocco's State Statistics Bureau (the Higher Planning Commission) does not collect data on ethnic demographics, citing the historical difficulty of distinguishing between Arabs and Berbers, even among Berber-languages' speakers.
According to 2024 census data, 92.7% of the population speaks Arabic, while 24.8% regularly speak an Amazigh variety. Despite the lack of official ethnic statistics, estimates put the Berber population as ranging between 35–80% of the population, while estimates of the Arab population range between 40–60%.
Berbers, who are also known as Amazigh, are typically divided into three main groups with varying dialects who live spread out in rural mountain areas, namely the Rifians in the Rif, the Central Atlas Amazigh in the Middle Atlas, and the Shilha people in the Anti-Atlas. Since the 7th century, the influx of Arab migrants from the Arabian Peninsula has contributed to shaping Morocco's demographic, cultural, and genetic landscape. Additionally, a considerable portion of the population includes Haratin, Sahrawis, and Gnawa, descendants of West African or mixed-race enslaved peoples, as well as Moriscos, European Muslims expelled from Spain and Portugal in the 17th century.
Additionally, Minority Rights Group International estimates that around 90,000 Sahrawis reside in internationally recognised Morocco, compared to approximately 190,000 in the disputed Western Sahara.
Religion
The religious affiliation in the country was estimated by the Pew Forum in 2010 as 99% Muslim, with all remaining groups accounting for less than 1% of the population. Of those affiliated with Islam, virtually all are Sunni Muslims, with Shia Muslims accounting for less than 0.1%. However, nearly 15% of Moroccans nonetheless describe themselves as non religious according to a 2018 survey conducted by the research network Arab Barometer; the same survey saw nearly 100 percent of respondents identify as Muslims. Another 2021 Arab Barometer survey found that 67.8% of Moroccans identified as religious, 29.1% as somewhat religious, and 3.1% as non religious. The 2015 Gallup International poll reported that 93% of Moroccans considered themselves to be religious.
Prior to Morocco's independence in 1956, the country was home to a significant Christian community, numbering over 500,000 Christians, predominantly of Spanish and French ancestry. The predominantly Catholic and Protestant foreign-resident Christian community consists of approximately 40,000 practising members. Most foreign resident Christians reside in the Casablanca, Tangier, Marrakesh and Rabat urban areas. Meanwhile, the Moroccan Association of Human Rights estimates there are 25,000 Christian citizens. in the country, which gave Morocco the largest Jewish community in the Muslim world. The most recent estimates put the size of the historic Casablanca Jewish community at about 2,500, and the Rabat and Marrakesh Jewish communities at about 100 members each. The remainder of the Jewish population is dispersed throughout the country. This population is mostly elderly, with a decreasing number of young people. The Baháʼí Faith community, located in urban areas, numbers 350 to 400 persons. The country's distinctive group of Moroccan Arabic dialects is referred to as Darija. Approximately 92.7% of the whole population can speak Arabic. Berber languages are spoken by 24.8% of the population in three dialects (Tarifit spoken by 3.2%, Tashelhit spoken by 14.2% and Central Atlas Tamazight spoken by 7.4%). After Morocco declared independence in 1956, French and Arabic became the main languages of administration and education. French is taught as an obligatory language in all schools. According to the 2004 census, 2.19 million Moroccans spoke a foreign language other than French. English, while far behind French in terms of number of speakers, is the first foreign language of choice, since French is obligatory, among educated youth and professionals. In 2010, there were 10,366,000 French-speakers in Morocco, or about 32% of the population. Spanish is mostly spoken in northern Morocco and the former Spanish Sahara because Spain had previously occupied those areas. Meanwhile, a 2018 study by the Instituto Cervantes found 1.7 million Moroccans who were at least proficient in Spanish, placing Morocco as the country with the most Spanish speakers outside the Hispanophone world (unless the United States is also excluded from Spanish-speaking countries). A significant portion of northern Morocco receives Spanish media, television signal and radio airwaves, which reportedly facilitate competence in the language in the region.
