South Africa were joined in the quarterfinals of the Africa Women's Cup of Nations by Nigeria and Botswana on Sunday.
Banyana Banyana beat Botswana 1-0 in Rabat to claim top spot in Group C, while the Super Falcons won 4-0 against Burundi to clinch second.
South Africa's victory made it three wins from three at the competition to date. They will face Tunisia in the quarter-finals in Rabat on Thursday.
In the 21st minute, Janine van Wyk's header was cleared off the line after Mapula Kgoale's corner.
Melinda Kgadiete replaced Jermaine Seoposenwe in the 28th minute in an injury-enforced substitution.
In the 71st minute, Thembi Kgatlana also made way after picking up a knock, with Nthabiseng Majiya her replacement. Kgatlana had been arguably South Africa's most consistently threatening player over the course of the match.
However, this substitution ultimately proved decisive, with Majiya scoring what proved to be the only goal of the game in the 80th minute. Nevertheless, Botswana will advance to the next round as one of the two best third-placed teams in order to face Morocco on Wednesday.
Nigeria dominated Burundi in their 4-0 win and could easily have scored yet more goals in a comfortable display.
Rasheedat Ajibade drew a foul inside the box and converted the ensuing spot-kick in the 25th minute.
Nigeria then netted twice more, with Peace Efih and then Uchenna Kanu making it 3-0 before the half-hour mark.
Immediately after the start of the second half, Kanu bagged a second goal to put the Super Falcons four to the good, with Ajibade claiming the assist.
The Super Falcons will face Cameroon in a mouth-watering quarterfinal clash in Casablanca on Thursday.