Morocco secured a 1-0 victory over South Africa in their final 2019 Africa Cup of Nations (Afcon) Group D match at the Al Salam Stadium in Egypt on Monday evening.
The victory saw the Atlas Lions advance to the knockout stages as group winners.
Bafana Bafana finished third in the group and they could still progress to the Round of 16 if the results in other groups go their way.
Bafana Bafana and the Atlas Lions both struggled to create clear-cut chances in the opening stages of the encounter.
Morocco were without their captain Medhi Benatia, who had been rested, but Romain Saiss looked solid at the heart of the team’s defence.
The England-based defender made a crucial interception in the box in the 14th minute following a good move by South Africa duo Thamsanqa Mkhize and Thulani Serero.
Both teams grew in confidence as the match progressed and Percy Tau’s shot from outside the box narrowly missed the target just after the half-hour mark.
Almost immediately at the other end, Youssef En-Nesyri forced South Africa goalkeeper Ronwen Williams into a low save with a powerful shot.
The two teams then pushed for the opening goal, but they could not find the back of the net in the first half and the score was 0-0 at halftime.
South Africa threatened first after the restart as Mkhize’s powerful low shot went inches wide of the target in the 48th minute after he was set-up by Themba Zwane.
Morocco also came very close to scoring when Achraf Hakimi cut inside and he unleashed a thunderous effort which hit the crossbar with Williams well-beaten.
The Atlas Lions were the better side in the closing stages of the game and Wiliams had to make a good save to deny En-Nesyri with 15 minutes left.
Morocco’s pressure paid off as Mbark Boussoufa pounced inside the box and he fired past Williams in the 90th minute to hand the Atlas Lions a 1-0 win over South Africa.
South Africa 0
Morocco (0) 1 (Boussoufa 90′)
South Africa: Williams; Mkhize, Hlanti, Mkhwanazi, Hlatshwayo, Mokotjo, Zwane (Vilakazi 75′), Zungu (Kekana 80′), Serero, Mothiba (Veldwijk 72′), Tau.
Morocco: Munir, Mazraoui (Dirar 75′), Da Costa, Saiss, Hakimi, El Ahmadi (Ait Bennasser 54′), Boussoufa, Ziyech (Fajr 89′), Belhanda, Amrabat, En Nesyri.
Source: SuperSports