Raja Casablanca will play Atletico Mineiro in the semifinal of the Club World Cup after beating Monterrey 2-1 at Agadir Stadium.
The Moroccan champions took the lead in the 24th minute when Chemseddine Chtibi found the target.
Mexico's Monterrey were level eight minutes into the second half through their captain, Jose Maria Basanta.
However, there was no further scoring and the contest went into extra-time.
And Raja made the decisive breakthrough less than five minutes into the added period when Kouko Guehi scored, setting up Tuesday's match against the Brazilian side.