The 49-year-old former Anderlecht assistant and Morocco Under 20 head coach takes over from Walid Regragui, who stepped down from his post after losing to Senegal in the final of the 2025 Africa Cup of Nations on home soil.
MFF were initially hesitant to allow Regragui to leave after he transformed the Moroccan national team, that included leading his team to a historic World Cup semi-final place at the 2022 tournament in Qatar.
Regragui leaves with the Atlas Lions ranked No 1 on the continent by FIFA and eighth overall.
Part of a MFF statement read: "By appointing Mohamed Ouahbi, the FRMF reaffirms a key principle: the sporting project continues to be led by Moroccan leadership.
"A respected technician from the national development pathway, Mohamed Ouahbi distinguished himself by leading Morocco's U20 national team to the FIFA U20 World Cup title, demonstrating his ability to build a collective, develop players, and instill a culture of elite performance.
"The Moroccan football school thus reflects internationally a distinctive way of working – rigor, discipline, structure, and talent development – as well as continuity in ambition."
"João Sacramento joins the technical staff following experience at the highest level, notably as assistant coach at Paris Saint-Germain, AS Roma, and Tottenham. He will bring a working methodology shaped by highly demanding environments, serving the team's preparation and daily execution."
Ouahbi recently guided the Morocco under 20 team to their maiden U20 World Cup title in Chile last year.