England's Twenty20 series with South Africa will go to a decider after the Proteas levelled the three-game contest with a three-run win at Taunton.
Chasing 175, England were cruising thanks to a stand of 110 between Jason Roy (67) and Jonny Bairstow (47).
But when Bairstow was caught and Roy controversially given out for obstructing the field, momentum swung.
With England needing 12 from the last over, the tourists held their nerve as Liam Dawson missed the final ball.
Debutant Tom Curran had earlier taken 3-33 to restrict South Africa to what looked to be an under-par 174-8.
But this was a much-improved display from AB de Villiers' side, two days after their nine-wicket defeat in Southampton.
They now head to Cardiff with a chance of claiming the series.
Second Twenty20 international, played at Taunton:
South Africa 174-8 (20 overs): De Villiers 46, Smuts 45, Curran 3-33
England 171-6 (20 overs): Roy 67, Bairstow 47, Morris 2-18
South Africa won by three runs
BDST: 0944 HRS, JUN 24, 2017
SI