Mohammed was the second child and oldest son of Hassan II and his second wife, Lalla Latifa Hammou. On the day of his birth, Mohammed was appointed Heir Apparent and Crown Prince. His father was keen on giving him a religious and political education from an early age— at the age of four, he started attending the Qur’anic school at the Royal Palace.
Mohammed completed his primary and secondary studies at Royal College and attained his Baccalaureate in 1981, before gaining a bachelor’s degree in law at the Mohammed V University at Agdal in 1985. His research paper dealt with “the Arab-African Union and the Strategy of the Kingdom of Morocco in matters of International Relations”. He has also frequented the Imperial College and University of Rabat. He was furthermore appointed President of the Pan Arab Games, and was commissioned a Colonel Major of the Royal Moroccan Army on 26 November 1985. He served as the Coordinator of the Offices and Services of the Royal Armed Forces until 1994.
In 1987, Mohammed obtained his first Certificat d’Études Supérieures (CES) in political sciences, and in July 1988 he obtained a Diplôme d’Études Approfondies (DEA) in public law. In November 1988, he trained in Brussels with Jacques Delors, then-President of the European Commission.