Josh Adams scored a late try as Wales claimed a dramatic 13-12 victory over South Africa to level the series in Bloemfontein.
Wales secured their first away win over the Springboks in 12 attempts after Adams went over in the corner with Gareth Anscombe converting with just over a minute remaining at the Toyota Stadium.
Wayne Pivac's side had lost their four previous Tests away from home, but they went into the break level at 3-3 following a scrappy first half in which Dan Biggar and Handre Pollard exchanged kicks.
Pollard was captaining the reigning World champions after Jacques Nienaber made 14 changes from the narrow 32-29 win in the first Test last weekend.
The Montpellier fly-half kicked a further nine points as the hosts edged closer to maintaining their record of having never lost a three-Test series on home soil when winning the opener.
But Wales did well to hold their own with a numerical disadvantage after Alun Wyn Jones was controversially sin-binned; the replacement deemed to have been cynical with his hands in the breakdown.
Upon his return, the visitors launched one final surge and following a neat build-up, Anscombe - who had earlier split the uprights with a penalty to keep Wales in striking distance - offloaded for Adams to cross in the corner.
Anscombe subsequently held his nerve under the most intense pressure to convert from a tight angle; his nation recording their first Test victory in South Africa since overcoming Japan at the 1995 World Cup.