Herve Renard is standing down as Morocco head coach after their early exit from the Africa Cup of Nations.
Morocco were one of the pre-tournament favourites for Egypt 2019 but suffered a shock penalty shootout defeat to Benin in the last 16.
Renard, who won Afcon with Zambia (2012) and Ivory Coast (2015), had been in charge since February 2016.
Renard took Morocco from 81st in the Fifa world rankings to 47th.
He led them to two Africa Cup of Nations tournaments, and to the World Cup in Russia in 2018 – the first time the Atlas Lions had played at the global event for 20 years.
His hopes of winning a third Afcon title were dashed in Egypt, and Renard admitted it was not the outcome he had expected.