Badou Zaki has left his job as coach of the Morocco national team by mutual consent, the Royal Moroccan Football Federation (FRMF) announced Wednesday.
A federation statement explained that "After 20 months of instability and inconsistent results" it agreed with Zaki to end his contract.
The federation also announced that a new coach would be appointed in the coming days.
Former Ivory Coast boss Herve Renard is being tipped to take over.
Renard, who lead the Elephants to the Africa Cup of Nations title in Equatorial Guinea last year, was sacked by French club Lille earlier this season,
The 47-year-old also lead Zambia to the Nations Cup title in 2012.
Former international goalkeeper Zaki, 56, took over as Morocco manager for the second time in May 2014.
Zaki first managed the side for three years from 2002, losing the Africa Cup of Nations final to Tunisia in 2004.
Morocco's next competitive games are crucial home and away 2017 Nations Cup qualifiers against Cape Verde at the end of March.
The two sides are currently top of Group F having won both their matches so far, Libya and Sao Tome are the other teams in the pool.
The Atlas Lions have also progressed to the final round of qualifying for the 2018 World Cup.