Senegal defeated South Africa 2-1 in the 2018 Fifa World Cup qualifier which was played at the Stade Léopold Sédar Senghor in Dakar on Tuesday night.
Bafana Bafana went into the match having already been eliminated from World Cup contention after losing 2-0 to Senegal at the Peter Mokaba Stadium last week Friday.
Stuart Baxter, the Bafana head coach, made two changes with Bongani Zungu and Keagan Dolly replacing Kamohelo Mokotjo, and Lebohang Manyama in the starting line-up.
Senegal head coach Aliou Cisse rang the changes to the side that secured qualification to the global competition for the first time in 16 years.
Moussa Sow, Opa N'Guette, Alfred Gomis, Kara Mbodji, Moussa Wague, Papa Ndiaye and Alfred Ndiaye were the seven players brought into the starting line-up by Cisse.
The hosts, who had crowded the midfield area, controlled central midfield with Bafana struggling to play their usual brand of football.
Baxter's charges did threaten from a set-piece when Clayton Daniels set-up his SuperSport United team-mate Morgan Gould, who volleyed the ball over the crossbar.
Senegal were also finding it difficult to unlock the South Africa defence which was marshalled by experienced central defender Daniels.
N'Guette decided to try his luck from range, but the France-based striker's effort went wide of the target as the Lions of Teranga searched for the opening goal.
The best chance of the first half fell for South Africa forward Sibusiso Vilakazi with the half-time break fast approaching.
Vilakazi somehow fired straight at Senegal goalkeeper Gomis, who made a good save, while Dolly's tame shot from the rebound was easily saved by the shot-stopper.
The score was 0-0 at the interval between Senegal and South Africa following an evenly matched first half.
The Lions of Teranga managed to break the deadlock in the opening stages of the second half after Bafana goalkeeper Itumeleng Khune was forced to rush off his line.
N'Guette pounced and he fired into an empty net from 25-yards out with the the visitors' defence exposed for the first time on the night.
Bafana then applied some pressure on the Senegal defence and they were awarded a penalty after Themba Zwane was brought down in the box.
The Mamelodi Sundowns attacker, who had scored for Bafana against Burkina Faso last month, then stepped up and he placed his effort wide of the target from the spot-kick.
The 1996 African champions never lost hope and they levelled matters through Percy Tau, who fired past Gomis with a powerful low shot.
Tau then had a chance to snatch a late winning goal for the visitors, but the forward fired straight at Gomis, who produced a comfortable save.
South Africa were left to rue that missed chance as Mbodji grabbed a winner for the hosts when he scored with a powerful header in stoppage time and Senegal ran out 2-1 winners on the night.
Bafana recorded their 100th defeat in international football since readmission - having played 365 matches - winning 160 and drawing 105.