The South African U-23 side failed to progress beyond the group stages, as they drew 1-1 with Iraq in their final Olympic Games Group A tie on Thursday morning.
Gift Motupa gave Owen da Gama’s side the lead six minutes in as he fired home from close range against the run of play at the Corinthians Arena.
However, Iraq captain Saad Luaibi responded in the 14th minute when he rose unmarked to nod in a corner from Mohanad Abdulraheem.
The South Africans never recovered from the setback.
It was Iraq who looked the better side for the majority of the first half.
Iraq nearly went ahead in the 40th minute when Adnan Ali’s volley cannoned off the upright with Khune well beaten.
Despite Iraq’s dominance, South Africa went close to restoring their lead in the 49th minute when Motupa was played through on goal, however the midfielder placed his effort well wide of the upright.
South Africa then lost captain Keagan Dolly through injury in the 82nd minute, and the winger was replaced Tashreeq Morris.
However, the Ajax Cape Town man did little to inspire the South Africans in the remaining minutes, as both teams bowed out of the Rio 2016 Olympic Games, with Brazil and Denmark progressing to the next round.
Hosts Brazil finally launched their campaign for Olympic gold as sought after starlet Gabriel Barbosa struck twice to defeat Denmark 4-0 on Wednesday.
The two-time champions Argentina bowed out of Rio 2016.