A record-breaking stand between Hashim Amla and AB de Villiers earned South Africa a thrilling 34-run victory in the third one-day international against Pakistan - but only after they survived a brutal innings from Shahid Afridi in Johannesburg.
- Related Content
Amla and De Villiers both clobbered centuries in the highest ever third-wicket partnership in ODIs of 238.
Amla scored 122, including nine fours and a six in his 113-ball knock, and De Villiers 128, his 108-ball innings featuring 12 fours and three maximums, to lead the hosts to 343 for five.
The total looked well out of Pakistan's reach until Afridi, in at seven, more than lived up to his nickname of 'Boom Boom' with a stunning 88.
It came from 44 balls and included five fours and seven sixes, the biggest clearing the stadium.
He gave the tourists real hope of pulling off the unlikeliest of wins, but his dismissal by Lonwabo Tsotsobe when going for another big hit left them with too much work to do.
The tourists were bowled out for 309 with 11 balls remaining as South Africa took a 2-1 lead in the four-match series.
Pakistan won the toss and elected to bowl and the decision appeared to be paying off as they made early inroads.
Mohammad Irfan dismissed Graeme Smith for three in the third over, the opener bowled off an inside edge.
And when Colin Ingram (17) became his second victim, Kamran Akmal behind the stumps taking a catch off a leading edge, the Proteas were 42 for two in the 14th over.
But De Villiers joined Amla at the crease and the duo swiftly took the match away from their opponents.
Amla survived being dropped by Mohammad Hafeez when on 36 and that proved costly as it was not until the 300 mark was in sight that he was dislodged.
By then he and De Villiers had racked up their record stand, which eclipsed Rahul Dravid and Sachin Tendulkar's unbeaten 237 for India against Kenya in the 1999 World Cup.
Riaz, who took the brunt of the punishment, going for 93 from his 10 overs, finally got a little reason to cheer by having Amla caught at extra cover by Misbah-ul-Haq.
De Villiers, having racked up his 14th ODI hundred, followed two overs later, caught at deep midwicket by Shoaib Malik off Saeed Ajmal.
But there was still time for Faf du Plessis to add a quickfire 45 from just 19 balls to strengthen South Africa's position even further, before falling to Riaz with the penultimate ball of the innings.
Tsotsobe struck first as Pakistan begun their reply, removing Nasir Jamshed for 10.
Ryan McLaren did for Akmal for 30, but Mohammad Hafeez took the score into three figures as he progressed past his half-century.
His stay was ended on 57 by Robin Peterson as the Proteas began to assert their authority.
Peterson did for Younis Khan (19) and Tsotsobe for Shoaib Malik (four), bringing Afridi to the crease with his side 132 for five.
His belligerent innings brought his side roaring back into the game, the big-hitter surviving being bowled off a no-ball and the loss of his partner Misbah (28) to give South Africa real cause for concern.
But the knock ended after 66 minutes when McLaren held a catch at long off off Tsotsobe.
And, despite 45 from Riaz, Pakistan were from then on fighting a losing cause and their innings ended one ball into the 49th over.