The Springboks needed a penalty three minutes from time to score a 33-31 victory over Argentina in their Rugby Championship clash in Salta, Argentina.
The Pumas led by 12 points midway through the second half and appeared to be headed for their first ever win in the Championship until the visitors scored two late tries and Morne Steyn kicked a penalty at the death to grab the win.
Both sides scored three tries as Argentina's forwards ensured almost total domination for their team in the first hour before South Africa's superior fitness helped them claw their way back.
Springboks captain Jean de Villiers says he's said before that this Argentina team are on the up and getting better and better, and they must get credit for going close today.
He says they're just so happy to get the win.
South Africa, who have not lost to Argentina in 19 tests, are top of the Rugby Championship standings ahead of New Zealand who beat Australia.
South Africa have eight points, New Zealand seven and Australia and Argentina two each.
In a fortnight the All Blacks play Argentina in Napier and Australia play South Africa in Perth.