Since the foundation of the first Moroccan state by Idris I in 788 AD, the country has been ruled by a series of independent dynasties, reaching its zenith under the Almoravid and Almohad dynasties, spanning parts of Iberia and northwestern Africa. The Marinid and Saadi dynasties continued the struggle against foreign domination, allowing Morocco to remain the only northwest African country to avoid Ottoman occupation. The Alaouite dynasty, which rules to this day, seized power in 1631. In 1912, Morocco was divided into French and Spanish protectorates, with an international zone in Tangier. It regained its independence in 1956, and has since remained comparatively stable and prosperous by regional standards.

The full Arabic name al-Mamlakah al-Maghribiyyah (المملكة المغربية) translates to "Kingdom of the West"; although "the West" in Arabic is الغربAl-Gharb. For historical references, medieval Arab historians and geographers sometimes referred to Morocco as al-Maghrib al-Aqṣá (المغرب الأقصى, meaning "The Farthest West") to distinguish it from neighbouring historical regions called al-Maghrib al-Awsaṭ (المغرب الأوسط, meaning "The Middle West") and al-Maghrib al-Adná (المغرب الأدنى, meaning "The Nearest West").[15]

The basis of Morocco's English name is Marrakesh, its capital under the Almoravid dynasty and Almohad Caliphate.[16] The origin of the name Marrakesh is disputed,[17] but is most likely from the Berber words amur (n) akush (ⴰⵎⵓⵔ ⵏ ⴰⴽⵓⵛ) or "Land of God.”[18] The modern Berber name for Marrakesh is Mṛṛakc (in the Berber Latin script). In Turkish, Morocco is known as Fas, a name derived from its ancient capital of Fes. However, this was not the case in other parts of the Islamic world: until the middle of the 20th century, the common name of Morocco in Egyptian and Middle Eastern Arabic literature was Marrakesh (مراكش);[citation needed] this name is still used in some languages such as Persian, Urdu and Punjabi. The English name Morocco is an anglicisation of the SpanishMarruecos.

Northwest Africa and Morocco were slowly drawn into the wider emerging Mediterranean world by the Phoenicians, who established trading colonies and settlements in the early Classical period. Substantial Phoenician settlements were at Chellah, Lixus and Mogador.[23] Mogador was a Phoenician colony as early as the early 6th century BC.[24][page needed]

Morocco later became a realm of the Northwest African civilisation of ancient Carthage as part of its empire. The earliest known independent Moroccan state was the Berber kingdom of Mauretania under king Baga.[25] This ancient kingdom (not to be confused with the present state of Mauritania) dates at least to around 225 BC.

According to medieval legend, Idris ibn Abdallah had fled to Morocco after the Abbasids' massacre of his tribe in Iraq. He convinced the Awraba Berber tribes to break their allegiance to the distant Abbasid caliphs in Baghdad 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 Idrissids 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.

From the 11th century onwards, a series of Berber dynasties arose.[28][29][30] Under the Almoravid dynasty and the Almohad dynasty,[31] Morocco dominated the Maghreb, much of present-day Spain and Portugal, and the western Mediterranean region. From the 13th century onwards the country saw a massive migration of the Banu Hilal Arab tribes. In the 13th and 14th centuries the Merinids held power in Morocco and strove to replicate the successes of the Almohads by military campaigns in Algeria and Spain. They were followed by the Wattasids. In the 15th century, the Reconquista ended Muslim rule in central and southern Spain and many Muslims and Jews fled to Morocco.[32]

Portuguese efforts to control the Atlantic sea trade in the 15th century did not greatly affect the interior of Morocco even though they managed to control some possessions on the Moroccan coast but not venturing further afield inland.

On another note and according to Elizabeth Allo Isichei, "In 1520, there was a famine in Morocco so terrible that for a long time other events were dated by it. It has been suggested that the population of Morocco fell from 5 to under 3 million between the early sixteenth and nineteenth centuries."[33]

Under the Saadi dynasty, the country repulsed Ottoman incursions and a Portuguese invasion at the battle of Ksar el Kebir in 1578. 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. After the death of al-Mansur, the country was divided among his sons.

In 1631, Morocco was reunited by the Alaouite dynasty, who have been the ruling house of Morocco ever since. Morocco was facing aggression from Spain and the Ottoman Empire allies pressing westward. The Alaouites 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.[34] With his Jaysh d'Ahl al-Rif (the Riffian Army) he seized Tangier from the English in 1684 and drove the Spanish from Larache in 1689. Portuguese abandoned Mazagão, their last territory in Morocco, in 1769. However, the Siege of Melilla against the Spanish ended in defeat in 1775.

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.[40] 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.

Tens of thousands of colonists entered Morocco. Some bought up large amounts of the rich agricultural land, 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 – a control which was also made necessary by the continuous wars among Moroccan tribes, part of which had taken sides with the French since the beginning of the conquest. Governor general Marshall 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).[43] The institution of slavery was abolished in 1925.[44]

Tangier's population included 40,000 Muslims, 31,000 Europeans and 15,000 Jews.[45]

Between 1921 and 1926, a Berber uprising in the Rif Mountains, led by Abd el-Krim, led to the establishment of the Republic of the Rif. The Spanish lost more than 13,000 soldiers at Annual in July–August 1921.[46] The rebellion was eventually suppressed by French and Spanish troops.

In 1943, the Istiqlal Party (Independence Party) was founded to press for independence, with discreet US support. That party subsequently provided most of the leadership for the nationalist movement.

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.[47] In March 1956 the French protectorate was ended and Morocco regained its independence from France as the "Kingdom of Morocco". A month later Spain ceded most of its protectorate in Northern Morocco to the new state but kept its two coastal enclaves (Ceuta and Melilla) on the Mediterranean coast. 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, there was a failed attempt 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.

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".[48] 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.[32]

Moroccan and Algerian troops soon clashed in Western Sahara. Morocco and Mauritania divided up Western Sahara. Fighting between the Moroccan military and Polisario forces continued for many years. The prolonged war was a considerable financial drain on Morocco. In 1983, Hassan cancelled planned elections amid political unrest and economic crisis. In 1984, Morocco left the Organisation of African Unity in protest at the SADR's admission to the body. Polisario claimed to have killed more than 5,000 Moroccan soldiers between 1982 and 1985.

Algerian authorities have estimated the number of Sahrawi refugees in Algeria to be 165,000.[49] 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.

Political reforms in the 1990s resulted in the establishment of a bicameral legislature in 1997 and Morocco's first opposition-led government came to power in 1998.

Protestors in Casablanca demand that authorities honor their promises of political reform.

King Hassan II died in 1999 and was succeeded by his son, Mohammed VI. He is a cautious moderniser who has introduced some economic and social liberalisation.[50]

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 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.

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 hundreds of African migrants tried to storm the borders of the Spanish enclaves of Melilla and Ceuta. Morocco deported hundreds of the illegal migrants. 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–12 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. 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.

The internationally recognised borders of the country lie between latitudes 27° and 36°N, and longitudes 1° and 14°W. Adding Western Sahara, Morocco lies mostly between 21° and 36°N, and 1° and 17°W (the Ras Nouadhibou peninsula is slightly south of 21° and west of 17°).

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. It is one of only three nations (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. At 446,550 km2 (172,414 sq mi), Morocco is the fifty-seventh largest country in the world. Algeria borders Morocco to the east and southeast, though the border between the two countries has been closed since 1994.

The Rif mountains stretch over the region bordering the Mediterranean from the north-west to the north-east. The Atlas Mountains run down the backbone of the country, from the northeast to the south west. 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, while to the south lies the Western Sahara, a former Spanish colony that was annexed by Morocco in 1975 (see Green March).[51] Morocco claims that the Western Sahara is part of its territory and refers to that as its Southern Provinces.

The country's Mediterranean climate is similar to that of southern California, with lush forests in the northern and central mountain ranges of the country, giving way to drier conditions and inland deserts further southeast. The Moroccan coastal plains experience remarkably moderate temperatures even in summer, owing to the effect of the cold Canary Current off its Atlantic coast.

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.

Southeast of the Atlas mountains, near the Algerian borders, the climate becomes very dry, with long and hot summers. Extreme heat and low moisture levels are especially pronounced in the lowland regions east of the Atlas range due to the rain shadow effect of the mountain system. The southeastern-most portions of Morocco are very hot, and include portions of the Sahara Desert, where vast swathes of sand dunes and rocky plains are dotted with lush oases.

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 from 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.

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 we have the following climate zones:

Mediterranean: It 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 29 °C (84.2 °F) and 32 °C (89.6 °F). Winters are generally mild and wet, daily average temperatures hover around 9 °C (48.2 °F) to 11 °C (51.8 °F), and average low are around 5 °C (41.0 °F) to 8 °C (46.4 °F), typical to the coastal areas of the west Mediterranean. Annual Precipitation in this area vary from 600–800 mm in the west to 350–500 mm in the east. Notable cities that fall into this zone are Tangier, Tetouan, 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. We thus have two main influencing climates:

Oceanic: Determined by the cooler summers, where highs are around 27 °C (80.6 °F) and in terms of the Essaouira region, are almost always around 21 °C (69.8 °F). The medium daily temperatures can get as low as 19 °C (66.2 °F), 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.

Continental: Determined by the bigger gap between highs and lows, that results in hotter summers and colder winters, than found in typical Mediterranean zones. In summer, daily highs can get as high as 40 °C (104.0 °F) during heat waves, but usually are between 32 °C (89.6 °F) and 36 °C (96.8 °F). However, temperatures drop as the sun sets. Night temperatures usually fall below 20 °C (68.0 °F), and sometimes as low as 10 °C (50.0 °F) in mid-summer. Winters are cooler, and can get below the freezing point multiple times between December and February. Also, snow can fall occasionally. Fès for example registered −8 °C (17.6 °F) in winter 2005. Annual precipitation varies between 500 and 900 mm. Notable cities are Fès, Meknès, Chefchaouen, Beni-Mellal and Taza.

Continental: This type of climate dominates the mountainous regions of the north and central parts of the country, where summers are hot to very hot, with highs between 32 °C (89.6 °F) and 36 °C (96.8 °F). Winters on the other hand are cold, and lows usually go beyond the freezing point. And when cold damp air comes to Morocco from the northwest, for a few days, temperatures sometimes get below −5 °C (23.0 °F). It often snows abundantly in this part of the country. Precipitation varies between 400 and 800 mm. Notable cities are Khenifra, Imilchil, Midelt and Azilal.

Alpine: This type of climate is found in some parts of the Middle Atlas Mountain range and the eastern part of the High Atlas Mountain range. Summers are very warm to moderately hot, and winters are longer, cold and snowy. Precipitation varies between 400 and 1200 mm. In summer highs barely go above 30 °C (86.0 °F), and lows are cool and average below 15 °C (59.0 °F). In winters, highs average around 8 °C (46.4 °F), and lows go well below the freezing point. In this part of country, there are many ski resorts, such as Oukaimeden and Mischliefen. Notable cities are Ifrane, Azrou and Boulmane.

Semi-arid: This type of climate is found in the south of the country and some parts of the east of the country, where rainfall is lower and annual precipitations are between 200 and 350 mm. However, one usually finds Mediterranean characteristics in those regions, such as the precipitation pattern and thermal attributes. Notable cities are Agadir, Marrakesh and Oujda.

South of Agadir and east of Jerada near the Algerian borders, arid and desert climate starts to prevail.

Note: Due to Morocco's proximity to the Sahara desert and the North Sea of the Atlantic Ocean, two phenomena occur to influence the regional seasonal temperatures, either by raising temperatures by 7–8 degrees Celsius when sirocco blows from the east creating heatwaves, or by lowering temperatures by 7–8 degrees Celsius when cold damp air blows from the northwest, creating a coldwave or cold spell. However, these phenomena don't last for more than 2 to 5 days on average.

Annual rainfall in Morocco is different according to regions. The northwestern parts of the country receive between 500 mm and 1200 mm, while the northeastern parts receive between 350 and 600 mm. North Central Morocco receives between 700 mm and up to 3500 mm. The area from Casablanca to Essaouira, on the Atlantic coast, receives between 300 mm and 500 mm. The regions from Essaouira to Agadir receive between 250 mm and 400 mm. Marrakesh region in the central south receives only 250 mm a year. The southeastern regions, basically the driest areas, receive between 100 mm and 200 mm only, and consist basically of arid and desert lands.

Botanically speaking, Morocco enjoys a great variety of vegetation, from lush large forests of conifer and oak trees typical of the western Mediterranean countries (Morocco, Algeria, Italy, Spain, France and Portugal), to shrubs and acacias further south. This is due to the diversity of climate and the precipitation patterns in the country.

Morocco's weather is one of the most pristine in terms of the four-season experience. Most regions have distinct seasons where summer is usually not spoiled by rain and winter turns wet, snowy and humid with mild, cool to cold temperatures, while spring and fall see warm to mild weather characterised by flowers blooming in spring and falling leaves in autumn. This type of weather has affected the Moroccan culture and behaviour and played a part in the social interaction of the population, like many other countries that fall into this type of climate zone.

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.[54]Avifauna are notably variant.[55] 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.[56]

The Barbary lion, hunted to extinction in the wild, was a subspecies native to Morocco and is a national emblem.[2] The last Barbary lion in the wild was shot in the Atlas Mountains in 1922.[57] The other two primary predators of northern Africa, the Atlas bear and Barbary leopard, are now extinct and critically endangered, respectively. Relict populations of the West African crocodile persisted in the Draa river until the 20th century.[58]

The Barbary macaque, a primate endemic to Morocco and Algeria, is also facing extinction due to offtake for trade[59] 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.[60][61] 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.[62]

Morocco was an authoritarian regime according to the Democracy Index of 2014. The Freedom of the Press 2014 report gave it a rating of "Not Free". This has improved since, however, and in 2017, Morocco was upgraded to being a "hybrid regime" according to the Democracy Index in 2017 and the Freedom of the Press report in 2017 found that Morocco was "partially free".

Following the March 1998 elections, a coalition government headed by opposition socialist leader Abderrahmane Youssoufi and composed largely of ministers drawn from opposition parties, was formed. Prime Minister Youssoufi's government was the first ever government drawn primarily from opposition parties, and also represents 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 the modern political history of the Arab world that the opposition assumed power following an election.[citation needed] The current government is headed by Saadeddine Othmani.

The constitution grants the king honorific powers; he is both the secular political leader and the "Commander of the Faithful" as a direct descendant of the Prophet Mohammed. He presides over the Council of Ministers; appoints the Prime Minister from the political party that has won the most seats in the parliamentary elections, and on recommendations from the latter, appoints the members of the government.

The previous 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.

Since the constitutional reform of 1996, the bicameral legislature consists of two chambers. The Assembly of Representatives of Morocco (Majlis an-Nuwwâb/Assemblée des Répresentants) has 325 members elected for a five-year term, 295 elected in multi-seat constituencies and 30 in national lists consisting only of women. The Assembly of Councillors (Majlis al-Mustasharin) has 270 members, elected for a nine-year term, elected by local councils (162 seats), professional chambers (91 seats) and wage-earners (27 seats).

The Parliament's powers, though still relatively limited, were expanded under the 1992 and 1996 and even further in the 2011 constitutional revisions and include budgetary matters, approving bills, questioning ministers, and establishing ad hoc commissions of inquiry to investigate the government's actions. The lower chamber of Parliament may dissolve the government through a vote of no confidence.

The latest parliamentary elections were held on November 25, 2011, and were considered by some neutral observers to be mostly free and fair. Voter turnout in these elections was estimated to be 43% of registered voters.

Compulsory military service in Morocco has been officially suspended since September 2006, and Morocco's reserve obligation lasts until age 50. 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[65]).

The UN maintains a small observer force in Western Sahara, where a large number of Morocco's troops are stationed. The Saharawi group Polisario 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.

Morocco claims sovereignty over Spanish enclaves of Ceuta and Melilla.

Morocco was the only African state not to be a member of the African Union due to its unilateral withdrawal on 12 November 1984 over the admission of the Sahrawi Arab Democratic Republic in 1982 by the African Union (then called Organisation of African Unity) as a full member without the organisation of a referendum of self-determination in the disputed territory of Western Sahara. Morocco rejoined the AU on 30 January 2017.[68][69]

Due to the conflict over Western Sahara, the status of the Saguia el-Hamra and Río de Oro regions is disputed. The Western Sahara War saw the Polisario Front, the Sahrawi rebel national liberation movement, battling both Morocco and Mauritania between 1976 and a ceasefire in 1991 that is still in effect. A United Nations mission, MINURSO, is tasked with organizing a referendum on whether the territory should become independent or recognised as a part of Morocco.

According to Human Rights Watch annual report 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 which criticizes the government and/or the king.[77] There are also persistent allegations of violence against both Sahrawi pro-independence and pro-Polisariodemonstrators[78] 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.[79]

Homosexual acts are illegal in Morocco, and can be punishable by 6 months to 3 years of imprisonment.[80][81] 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.[82][83] Violence against women, forced marriage and sexual harassment has been criminalized. The penalty can be from 1 month to 5 years, with fines ranging from $200 to $1,000.[84]

Government reforms and steady yearly growth in the region of 4–5% from 2000 to 2007, including 4.9% year-on-year growth in 2003–2007 helped the Moroccan economy to become much more robust compared to a few years ago. For 2012 the World Bank forecasts a rate of 4% growth for Morocco and 4.2% for following year, 2013.[88]

The services sector accounts for just over half of GDP and industry, made up of mining, construction and manufacturing, is an additional quarter. The industries that recorded the highest growth are tourism, telecoms, information technology, and textile.

Tourism is one of the most important sectors in Moroccan economy. It is well developed with a strong tourist industry focused on the country's coast, culture, and history. Morocco attracted more than 10 million tourists in 2013.
Tourism is the second largest foreign exchange earner in Morocco after the phosphate industry. The Moroccan government is heavily investing in tourism development, in 2010 the government launched its Vision 2020 which plans to make Morocco one of the top 20 tourist destinations in the world and to double the annual number of international arrivals to 20 million by 2020,[89] with the hope that tourism will then have risen to 20% of GDP.

A large government sponsored marketing campaigns to attract tourists advertised Morocco as a cheap 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 in April and the autumn.[citation needed] Morocco's relatively high number of tourists has been aided by its location, Morocco is close to Europe and attracts visitors to its beaches. Because of its proximity to Spain, tourists in southern Spain's coastal areas take one- to three-day trips to Morocco.

Air services between Morocco and Algeria have been established, many Algerians have gone to Morocco to shop and visit family and friends. Morocco is relatively inexpensive because of the devaluation of the dirham and the increase of hotel prices in Spain. Morocco has an excellent road and rail infrastructure that links the major cities and tourist destinations with ports and cities with international airports. Low-cost airlines offer cheap flights to the country.

Tourism is increasingly focused on Morocco's culture, such as its ancient cities. The modern tourist industry capitalises on Morocco's ancient Roman and Islamic sites, and on its landscape and cultural history. 60% of Morocco's tourists visit for its culture and heritage.
Agadir is a major coastal resort and has a third of all Moroccan bed nights. It is a base for tours to the Atlas Mountains. Other resorts in north Morocco are also very popular.[90]

Casablanca is the major cruise port in Morocco, and has the best developed market for tourists in Morocco, Marrakech in central Morocco is a popular tourist destination, but is more popular among tourists for one- and two-day excursions that provide a taste of Morocco's history and culture. The Majorelle botanical garden in Marrakech is a popular tourist attraction. It was bought by the fashion designer Yves Saint-Laurent and Pierre Bergé in 1980. Their presence in the city helped to boost the city's profile as a tourist destination.[91]

As of 2006[update], activity and adventure tourism in the Atlas and Rif Mountains are the fastest growth area in Moroccan tourism. These locations have excellent walking and trekking opportunities from late March to mid-November. The government is investing in trekking circuits. They are also developing desert tourism in competition with Tunisia.[92]

Agriculture accounts for around 14% of GDP and employs 40–45% of the Moroccan working population. With a semi-arid climate and an ill-developed irrigation system, it is difficult to assure enough irrigation.

The major resources of the Moroccan economy are agriculture, phosphates, and tourism. Sales of fish and seafood are important as well. Industry and mining contribute about one-third of the annual GDP. Morocco is the world's third-largest producer of phosphorus after China and the United States,[93] and the price fluctuations of phosphates on the international market greatly influence Morocco's economy.

Morocco suffers both from unemployment (9.6% in 2008), and a large external debt estimated at around $20 billion, or half of GDP in 2002.[94]

Although Morocco runs a structural trade deficit, this is typically offset by substantial services earnings from tourism and large remittance inflows from the diaspora, and the country normally runs a small current-account surplus.[95]

In 2008, about 56% of Morocco's electricity supply was provided by coal.[96] However, as forecasts indicate that energy requirements in Morocco will rise 6% per year between 2012 and 2050,[97] 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 energypower plant[98] and is also looking into the use of natural gas as a potential source of revenue for Morocco's government.[97]

Morocco has embarked upon the construction of large solar energy farms to lessen dependence on fossil fuels, and to eventually export electricity to Europe.[99]

Since the 7th century, Cannabis has been cultivated in the Rif Region.[100] 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.[101] 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.[102] In addition to that, Morocco is a transit point for cocaine from South America destined for Western Europe.[103]

Water supply and sanitation in Morocco is provided by a wide array of utilities. They range from private companies in the largest city, Casablanca, the capital, Rabat,
and two other cities,[clarification needed] to public municipal utilities in 13 other cities, as well as a national electricity and water company (ONEE). The latter is in charge of bulk water supply to the aforementioned utilities, water distribution in about 500 small towns, as well as sewerage and wastewater treatment in 60 of these towns.

There have been substantial improvements in access to water supply, and to a lesser extent to sanitation, over the past fifteen years. Remaining challenges include a low level of wastewater treatment (only 13% of collected wastewater is being treated), lack of house connections in the poorest urban neighbourhoods, and limited sustainability of rural systems (20 percent of rural systems are estimated not to function). In 2005 a National Sanitation Program was approved that aims at treating 60% of collected wastewater and connecting 80% of urban households to sewers by 2020. 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.

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 greater support for science during a meeting at the National Centre for Scientific and Technical Research. The aim was to give universities greater financial autonomy from the government to make them more responsive to research needs and better able to forge links with the private sector, in the hope that this would nurture a culture of entrepreneurship in academia. He 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, in order to finance the refurbishment and construction of laboratories, training courses for researchers in financial management, a scholarship programme for postgraduate research and incentive measures for companies prepared to finance research, such as giving them access to scientific results that they could then use to develop new products.[104]

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, including researchers, entrepreneurs, students and academics, to help them develop innovative projects.[105]

The Ministry of Higher Education and Scientific Research is supporting research in advanced technologies and the development of innovative cities in Fez, Rabat and Marrakesh. The government is encouraging public institutions to engage with citizens in innovation. One example is the Moroccan Phosphate Office (Office chérifien des phosphates), which 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).[106][107]

As of 2015, Morocco had three technoparks. Since the first technopark was established in Rabat in 2005, a second has been set up in Casablanca, followed, in 2015, by a third in Tangers. The technoparks host start-ups and small and medium-sized enterprises specializing in information and communication technologies (ICTs), 'green' technologies (namely, environmentally friendly technologies) and cultural industries.[106]

In 2012, the Hassan II Academy of Science and Technology 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 energy, with an emphasis on renewable energies such as photovoltaic, thermal solar energy, wind and biomass; as well as the water, nutrition and health sectors, the environment and geosciences.[105][108]

On 20 May 2015, less than a year after 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. Since improving the quality of education goes hand in hand with promoting research and development, 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’.[106]

Morocco has a population of around 35,276,786 inhabitants (2016 est.).[110] According to the CIA, 99% of residents are Arab-Berber, with the remaining 1% comprising other groups.[1] It is estimated that between 41%[111] to 80% of residents have Berber ancestral origins.[112] A sizeable portion of the population is identified as Haratin and Gnawa (or Gnaoua), West African or mixed race descendants of slaves, and Moriscos, European Muslims expelled from Spain and Portugal in the 17th century.[113]

According to the 2014 Morocco population census, there were around 84,000 immigrants in the country. Of these foreign-born residents, most were of French origin, followed by individuals mainly from various nations in West Africa and Algeria.[114] 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; who were mostly Christians.[115] Also prior to independence, Morocco was home to 250,000 Spaniards.[116][117] Morocco's once prominent Jewish minority has decreased significantly since its peak of 265,000 in 1948, declining to around 2,500 today.[118]

Morocco has a large diaspora, most of which is located in France, which has reportedly over one million Moroccans of up to the third generation. There are also large Moroccan communities in Spain (about 700,000 Moroccans),[119] the Netherlands (360,000), and Belgium (300,000).[120] Other large communities can be found in Italy, Canada, the United States, and Israel, where Moroccan Jews are thought to constitute the second biggest Jewish ethnic subgroup.

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.[122] Sunnis form the majority at 67% with non-denominational Muslims being the second largest group of Muslims at 30%.[123] There are an estimated 3,000 to 8,000 Shia Muslims, most of them foreign residents from Lebanon or Iraq, but also a few citizen converts. Followers of several Sufi Muslim orders across the Maghreb and West Africa undertake joint annual pilgrimages to the country.

Christians are estimated at 1% (~380,000) of the Moroccan population.[2] The predominantly Roman Catholic and Protestant foreign-resident Christian community consists of approximately 40,000 practising members. Most foreign resident Christians reside in the Casablanca, Tangier, and Rabat urban areas.
Various local Christian leaders estimate that between 2005 and 2010 there are 5,000 citizen converted Christians (mostly ethnically Berber) who regularly attend "house" churches and live predominantly in the south.[124] Some local Christian leaders estimate that there may be as many as 8,000 Christian citizens throughout the country, but many reportedly do not meet regularly due to fear of government surveillance and social persecution.[125] The number of the Moroccans who converted to Christianity (most of them secret worshippers) are estimated between 8,000–40,000.[126][127]

The most recent estimates put the size of the Casablanca Jewish community at about 2,500,[128] 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.[125]
The Baha’i community, located in urban areas, numbers 350 to 400 persons.[125]

Morocco's official languages are Arabic and Berber.[129][130] The country's distinctive group of Moroccan Arabic dialects is referred to as Darija. Approximately 89.8% of the whole population can communicate to some degree in Moroccan Arabic.[131] The Berber language is spoken in three dialects (Tarifit, Tashelhit and Central Atlas Tamazight).[132] In 2008, Frédéric Deroche estimated that there were 12 million Berber speakers, making up about 40% of the population.[133] The 2004 population census reported that 28.1% of the population spoke Berber.[131]

French is widely used in governmental institutions, media, mid-size and large companies, international commerce with French-speaking countries, and often in international diplomacy. French is taught as an obligatory language at all schools. In 2010, there were 10,366,000 French-speakers in Morocco, or about 32% of the population.[134][note 1]

According to the 2004 census, 2.19 million Moroccans spoke a foreign language other than French.[131]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.

According to Ethnologue, as of 2016, there are 1,536,590 individuals (or approximately 4.5% of the population) in Morocco who speak Spanish.[135] Spanish is mostly spoken in northern Morocco and the Spanish Sahara because Spain had previously occupied those areas.[136] Significant portion of Northern Morocco receives Spanish media, television signal and radio airwaves, which reportedly facilitate competence in the language in the region.[137]

After Morocco declared independence in 1956, French and Arabic became the main languages of administration and education, causing the role of Spanish to decline.[137]

Since independence, a veritable blossoming has taken place in painting and sculpture, popular music, amateur theatre, and filmmaking.[citation needed] The Moroccan National Theatre (founded 1956) offers regular productions of Moroccan and French dramatic works. Art and music festivals take place throughout the country during the summer months, among them the World Sacred Music Festival at Fès.

Each region possesses its own specificities, thus contributing to the national culture and to the legacy of civilization. Morocco has set among its top priorities the protection of its diverse legacy and the preservation of its cultural heritage.[citation needed]

Culturally speaking, Morocco has always been successful in combining its Berber, Jewish and Arabic cultural heritage with external influences such as the French and the Spanish and, during the last decades, the Anglo-American lifestyles.[138][139][140]

The indigenous Berber people and a series of foreign invaders as well as religious and cultural influences have shaped Morocco's architectural styles. The vernacular architecture can range from ornate with bold with colours to simple, clean lines with earth tones.

Influences from the Arab world, Spain, Portugal and France are seen in Moroccan architecture, both on their own and blended with Berber and Islamic styles. Among the buildings, and old Kasbah walls, sit French style-towns left behind by colonisation and intersect with intricately detailed mosques and riad-style homes. Sleek, modern designs are being constructed in cities like Rabat and Casablanca that give no particular homage to any of the past Moroccan architecture styles.[141]

Moroccan literature is written in Arabic, Berber and French. Under the Almohad dynasty Morocco experienced a period of prosperity and brilliance of learning. The Almohad built the Koutoubia Mosque in Marrakesh, which accommodated no fewer than 25,000 people, but was also famed for its books, manuscripts, libraries and book shops, which gave it its name; the first book bazaar in history. The Almohad Caliph Abu Yakub had a great love for collecting books. He founded a great library, which was eventually carried to the Casbah and turned into a public library.

Modern Moroccan literature began in the 1930s. Two main factors gave Morocco a pulse toward witnessing the birth of a modern literature. Morocco, as a French and Spanish protectorate left Moroccan intellectuals the opportunity to exchange and to produce literary works freely enjoying the contact of other Arabic literature and Europe.
Three generations of writers especially shaped 20th century Moroccan literature.[142] The first was the generation that lived and wrote during the Protectorate (1912–56), its most important representative being Mohammed Ben Brahim (1897–1955).

Chaabi ("popular") is a music consisting of numerous varieties which are descended from the multifarious forms of Moroccan folk music. Chaabi was originally performed in markets, but is now found at any celebration or meeting.

Cinema in Morocco has a long history, stretching back over a century to the filming of Le chevrier Marocain ("The Moroccan Goatherd") by Louis Lumière in 1897. Between that time and 1944, many foreign movies were shot in the country, especially in the Ouarzazate area.

In 1944, the Moroccan Cinematographic Center (CCM), the nation's film regulatory agency, was established. Studios were also opened in Rabat.

Moroccan cuisine is considered as one of the most diversified cuisines in the world. This is a result of the centuries-long interaction of Morocco with the outside world.[144] The cuisine of Morocco is mainly a fusion of Moorish, European and Mediterranean cuisines.

Spices are used extensively in Moroccan cuisine. While spices have been imported to Morocco for thousands of years, many ingredients such as saffron from Tiliouine, mint and olives from Meknes, and oranges and lemons from Fez, are home-grown. Chicken is the most widely eaten meat in Morocco. The most commonly eaten red meat in Morocco is beef; lamb is preferred but is relatively expensive. The main Moroccan dish most people are familiar with is couscous,[145] the old national delicacy.

Beef is the most commonly eaten red meat in Morocco, usually eaten in a Tagine with vegetables or legumes. Chicken is also very commonly used in Tagines, knowing that one of the most famous tagine is the Tagine of Chicken, potatoes and olives. Lamb is also consumed, but as Northwest African sheep breeds store most of their fat in their tails, Moroccan lamb does not have the pungent flavour that Western lamb and mutton have. Poultry is also very common, and the use of seafood is increasing in Moroccan food. In addition, there are dried salted meats and salted preserved meats such as kliia/khlia[146] and "g'did" which are used to flavor tagines or used in "el ghraif" a folded savory Moroccan pancake.

Among the most famous Moroccan dishes are Couscous, Pastilla (also spelled Bsteeya or Bestilla), Tajine, Tanjia and Harira. Although the latter is a soup, it is considered as a dish in itself and is served as such or with dates especially during the month of Ramadan. Pork consumption is forbidden in accordance with Sharia, religious laws of Islam.

A big part of the daily meal is bread. Bread in Morocco is principally from durum wheat semolina known as khobz. Bakeries are very common throughout Morocco and fresh bread is a staple in every city, town and village. The most common is whole grain coarse ground or white flour bread. There are also a number of flat breads and pulled unleavened pan-fried breads.

The most popular drink is "atai", green tea with mint leaves and other ingredients. Tea occupies a very important place in the culture of Morocco and is considered an art form. It is served not only at mealtimes but all through the day, and it is especially a drink of hospitality, commonly served whenever there are guests. It is served to guests, and it is impolite to refuse it.

Football is the country's most popular sport, popular among the urban youth in particular. In 1986, Morocco became the first Arab and African country to qualify for the second round of the FIFA World Cup. Morocco was originally scheduled to host the 2015 Africa Cup of Nations,[147] but refused to host the tournament on the scheduled dates because of fears over the ebola outbreak on the continent.[148]

Spectator sports in Morocco traditionally centered on the art of horsemanship until European sports—football, polo, swimming, and tennis—were introduced at the end of the 19th century. Tennis and golf have become popular.[citation needed] Several Moroccan professional players have competed in international competition, and the country fielded its first Davis Cup team in 1999.
Rugby came to Morocco in the early 20th century, mainly by the French who occupied the country.[149] As a result, Moroccan rugby was tied to the fortunes of France, during the first and second World War, with many Moroccan players going away to fight.[149] Like many other Maghreb nations, Moroccan rugby tended to look to Europe for inspiration, rather than to the rest of Africa.

Education in Morocco is free and compulsory through primary school. The estimated literacy rate for the country in 2012 was 72%.[150] In September 2006, UNESCO awarded Morocco amongst other countries such as Cuba, Pakistan, India and Turkey the "UNESCO 2006 Literacy Prize".[151]

Morocco has more than four dozen universities, institutes of higher learning, and polytechnics dispersed at urban centres throughout the country. Its leading institutions include Mohammed V University in Rabat, the country's largest university, with branches in Casablanca and Fès; the Hassan II Agriculture and Veterinary Institute in Rabat, which conducts leading social science research in addition to its agricultural specialties; and Al-Akhawayn University in Ifrane, the first English-language university in Northwest Africa,[152] inaugurated in 1995 with contributions from Saudi Arabia and the United States.

This section needs expansion. You can help by adding to it.(January 2013)

In 2014, spending on healthcare accounted for 5.9% of the country's GDP, and in 2016 the life expectancy at birth was 74.3, or 73.3 for men and 75.4 for women, and there were 6.3 physicians and 8.9 nurses and midwives per 10,000 inhabitants.[156]

^ abFrench is also used in official government documents and by the business community, although it has no official status: "French (often the language of business, government, and diplomacy)..." [1] – See French language in Morocco for further information

^
Rodd, Francis. "Kahena, Queen of the Berbers: "A Sketch of the Arab Invasion of Ifriqiya in the First Century of the Hijra" Bulletin of the School of Oriental Studies, University of London, Vol. 3, No. 4, (1925)

^Rubella, D. (1984). "Environmentalism and Pi Paleolithic economies in the Maghreb (c. 20,000 to 5000 B.P.)". In J.D. Clark & S.A. Brandt. From hunters to farmers the causes and consequences of food production in Africa. Berkeley: University of California Press. pp. 41–56. ISBN978-0520045743.

1Entirely claimed by both Morocco and the SADR.2Spanish exclaves claimed by Morocco.3Portuguese archipelago claimed by Spain.4Disputed between Sudan and Egypt.5Terra nullius located between Egypt and Sudan.6Disputed between Sudan and South Sudan.7Part of Chad, formerly claimed by Libya.8Disputed between Morocco and Spain