Pakistan beat Sri Lanka by 26 runs in Sharjah to take an unassailable 3-1 lead in their five-match one-day international series.
- Related Content
After recovering from 71 for five on a slow pitch to post exactly 200, Pakistan then duly dismissed Sri Lanka for 174 in 45.2 overs.
Sri Lanka looked on course for victory when they reached 155 for three as Kumar Sangakkara and Mahela Jayawardene put on 102 for the fourth wicket, but they lost their last seven wickets for just 19 runs.
Shahid Afridi was the hero for Pakistan, making a typically aggressive 75 from 65 balls with the bat and then finishing with figures of five for 35, despite suffering a leg injury while fielding after catching his foot in the turf.
Afridi struck four fours and three sixes to help his side at least post a total they could defend.
Imran Farhat (10) was the first man to go, glancing Dilhara Fernando's first ball down the leg side for Sangakkara to take a smart tumbling catch.
Mohammad Hafeez had made a cautious 27 from 51 balls before he heaved Seekkuge Prasanna to deep square leg, before Fernando again struck with the first ball of a spell by luring Younus Khan into popping a simple catch into the covers.
Shoaib Malik made a painful two from 22 balls before being trapped lbw by Jeevan Mendis, while Umar Akmal had also made just two when he was dismissed in the same circumstances by the same bowler.
That left Pakistan relying on Misbah-ul-Haq and Afridi to get them out of trouble, but Misbah (16) was run out after a dreadful mix-up and it was left to Afridi to take the game to Sri Lanka.
He brought up his 50 with a thumping six in the 41st over and was dropped by Fernando a couple of overs later going for another big hit.
He eventually fell to the last ball of the 44th over by edging behind off the bowling of Thisara Perera, leaving Saeed Ajmal (20) and Umar Gul (seven) to complete the innings.
In reply, Sri Lanka fell to 53 for three as Upul Tharanga (16), Tillakaratne Dilshan (11) and Dinesh Chandimal (11) all reached double figures without being able to make a significant contribution.
It looked like veterans Sangakkara (58) and Jayawardene would come to the rescue as they put on a century partnership, but Afridi then got one to turn sharply to bowl Sangakkara and start the collapse.
Angelo Mathews and Seekkuge Prasanna were both dismissed without scoring as none of Sri Lanka's last six batsmen reached double figures.