Pakistan survived a nervy finish to secure a four-wicket victory over England in the third Test at The Oval.
Despite requiring just 33 runs after lunch on the final day on Sunday with seven wickets in hand, three wickets in quick succession as their confidence was sapped almost instantly.
They were stuck on 16 runs required for four straight overs as the England bowling attack probed Umar Akmal and Mohammad Amir, the pair playing and missing on several occasions.
But Akmal and Amir steadied and eventually steered Pakistan to a famous victory, and kept their chances of drawing the four-match series alive.
Earlier on, the Pakistani collapse began with the run out of Azhar Ali, after he clipped a shot into Alistair Cook's ankle at short leg.
Former captain Mohammad Yousuf called Ali through, but Cook quickly threw the ball to bowler Graeme Swann who whipped off the bails to give the hosts a faint chance of a comeback victory.
Yousuf followed three overs later, as Anderson got through his defence with a perfectly-placed yorker to rattle the stumps and shake Pakistan's nerves.
Next over, wicketkeeper Kamran Akmal was on his way back to the pavilion after just six balls and no score, controversially given out lbw to Graeme Swann.
Akmal padded up to a straightening Swann delivery which was lucky not to follow-on to the stumps, and umpire Tony Hill gave him out after a long appeal.
The Pakistani batsman decided to challenge the call, but was denied and had to walk, which brought Amir to the crease.
After struggling to break the shackles, Amir cracked a boundary off Graeme Swann to get the scoreboard ticking again, before Akmal hit the final five runs off Swann to seal victory.
Skipper Salman Butt top scored for Pakistan with 48 while Yousuf and opener Imran Farhat both made 33.
The Test series is now poised at 2-1 in England's favour, but Pakistan will be fighting to tie the series in the fourth and final Test at Lord's starting on Thursday.