Morocco, officially known as the Kingdom of Morocco, is a unitary sovereign state located in the Maghreb region of North Africa. Geographically, Morocco is characterised by a rugged mountainous interior, large tracts of desert and a lengthy coastline along the Atlantic Ocean and Mediterranean Sea.
Morocco has a population of over 33.8 million and an area of 446,550 km². Its capital is Rabat, and the largest city is Casablanca. Other major cities include Marrakesh, Tangier, Salé, Fes, and Meknes. A historically prominent regional power, Morocco has a history of independence not shared by its neighbours. Since the foundation of the first Moroccan state by Idris I in 788, the country has been ruled by a series of independent dynasties, reaching its zenith under the Almoravid and Almohad dynasty, spanning parts of Iberia and Northwestern Africa. Marinid and Saadi dynasties continued the struggle against foreign domination, and Morocco remained the only North African country to avoid Ottoman occupation. The Alaouite dynasty, the current ruling dynasty, seized power in 1631.