Third Test, Headingley, day five
England 515 & 345 bt Pakistan 538 & 155 by 167 runs
England took an unassailable 2-0 lead in the four-match series after bowling out Pakistan to win the third Test by 167 runs midway through the final day.
Mahmood chose a useful day to produce his Test best
Key man Mohammad Yousuf was run out for eight and Sajid Mahmood struck twice in an over to make it 84-5 at lunch.
Monty Panesar (3-39) then produced a stunning delivery to bowl Younis Khan (41) and Pakistan never looked like chasing down 323 to win.
Mahmood finished with a Test best 4-22 as Pakistan were all out for 155.
The tourists would have had to break a national record for a run chase to win the match and go into the final Test at The Oval at 1-1.
But they were well positioned at 68-2 half an hour before lunch, with their two kingpins - Younis and Yousuf - at the crease, fresh from a record partnership of 363 in the first innings.
Man-of-the-match Younis immediately looked full of threat, driving his first ball for two and soon hooking Steve Harmison to the mid-wicket boundary.
But his decision to take a single to Paul Collingwood, England's best fielder, astounded the vociferous crowd - many of whom were supporting Pakistan - and left Yousuf well short of the crease as the gully fielder's throw on the dive hit the stumps.
The pitch appeared to show widening of the many cracks on the final day, but there was very little deviation in the early stages.
Matthew Hoggard, in particular, looked very innocuous, twice hit for successive boundaries by Salman Butt.
But the Yorkshireman eventually put one in the right area to find Butt's outside edge, Marcus Trescothick taking a comfortable catch.
Panesar, who bowled the first over of the day to allow the seamers a change of ends, came close to dismissing Taufeeq Umar with his third ball.
Then, after being brought back into the attack after the first drinks break, the spinner had Umar smartly caught via the pad attempting a sweep, by Alastair Cook close to the wicket.
Panesar also troubled Yousuf with some subtle turn, but not as much as Younis, who will struggle to justify the decision for a quick single that led to his prolific partner's demise.
Younis is bowled by a magical ball from Monty Panesar
As if that was not enough, Mahmood, so often wildly inconsistent, then produced an over of accuracy and pace, bowling in excess of 90mph.
Faisal Iqbal glanced down the leg-side and Chris Read took an excellent low catch sprawling to his left.
Two balls later, Kamran Akmal was beaten for pace and could only edge to the keeper, bringing in the captain for a challenge even he was unable to conquer.
Panesar then put the match beyond doubt after lunch by bowling Younis with a ball that turned, bounced and just clipped the bails.
Mohammad Sami became the fourth Pakistan batsman in the match to be run out, and Mahmood, in the first over of his second spell, was too hot for Shahid Nazir and Umar Gul.
They each gave slip catches to an eager cordon of fielders, but fittingly it was Panesar who settled the contest, dismissing Inzamam for 37.
The captain had to bat at number seven because of the length of time he was off the field on the penultimate day due to a rib injury.
He struck six typically lusty boundaries, three of which were off Harmison, who failed to find his rhythm on the final day.
But he was skilfully lured out of his ground by Panesar, allowing Read to complete a fine return to the team with a nimble stumping.
It was England's first home Test series victory over Pakistan since 1982, their first series win since last summer's Ashes and the 10th successive home series in which they have been unbeaten.