The former Belgian international is the second coach in three days to lose a high-profile African job following Cameroon's decision to suspend Denis Lavagne until the end of his contract next month.
Gerets was in charge of Morocco for almost two years. He started well but has come under increasing pressure recently after a series of poor results.
His contract was terminated after a meeting of the Morocco Football Federation, committee member Karim Alem told the official MAP news agency.
- Denis Lavagne