Win 100 iconic DVDs
At stumps on the second day, Sri Lanka had collapsed to 91 for six, still a huge 460 behind England's first innings 551 for six declared and needing a further 261 to avoid the follow-on target of 352.
Mahmood, the 24-year-old Lancashire fast bowler, took three wickets for no runs in nine balls to end the day with figures of 5-2-9-3.
Sri Lanka captain Mahela Jayawardene, dropped by diving wicket-keeper Geraint Jones on 34, was 40 not out and Farveez Maharoof unbeaten on six at stumps.
Earlier, Kevin Pietersen scored 158 to equal his Test-best score in what was England's highest total against Sri Lanka, a stand of 173 with Paul Collingwood (57) the centrepiece of the innings.
After Matthew Hoggard had struck a couple of early blows, Mahmood - the cousin of British boxing star Amir Khan - delivered some knockout punches of his own, breaking the 90mph barrier and bowling with a venom way beyond anything the Sri Lankan quicks had managed.
The way the touring side's reply began suggested Sanath Jayasuriya, the former captain, could not arrive in England quickly enough after the veteran left-handed opener recently announced he was ending his Test retirement.
Jehan Mubarak had been drafted in as an opener after Michael Vandort had made a pair in last week's 10-wicket defeat by England A. However, Mubarak fell for nought, lbw to Hoggard's inswinging seventh ball as Sri Lanka lost their first wicket without a run on the board. Upul Tharanga, the fellow left-hand opener, exited in similar fashion for ten, his dismissal made worse by the fact he was shouldering arms. Hoggard had taken two wickets for seven runs in 18 balls to take his Test tally to 199.
Kumar Sangakkara and Jayawardene, the most experienced batsmen, staunched the flow of wickets with a stand of 60. But Sangakkara went for 20 when, driving loosely outside off-stump against Mahmood, he was caught by Marcus Trescothick at first slip to give the bowler his first Test wicket with only his 12th ball.
Mahmood then had Thilan Samaraweera plumb lbw for none before Tillakaratne Dilshan also went for nought after he was run-out having been sent back by Jayawardene. And when debutant Chamara Kapugedera then fell for a first-ball nought, also lbw to Mahmood, Sri Lanka had lost four wickets for four runs in 21 balls.
Earlier Pietersen's hundred was his third Test century and his first at Lord's as England surpassed their previous best against Sri Lanka of 545 at Edgbaston in 2002. Muttiah Muralitharan was one of three bowlers who conceded more than 100 runs, taking three for 158 in 48 overs in what was the off-spinner's first Test at Lord's.
Pietersen, who batted for five fours, equalled his Ashes-clinching 158 at The Oval in September by clipping Chaminda Vaas for four. But next ball he was lbw to the left-arm quick. Pietersen faced 205 balls with two sixes and 19 fours having been caught off a Maharoof no-ball for 52 on Thursday.
Andrew Flintoff (33 not out) lofted his former Lancashire team-mate Muralitharan for six before repeating the dose and then declaring as he continued to deputise as captain for Michael Vaughan.
England, who won the toss in the first of a three-match series, started Friday on 318 for three after opener Marcus Trescothick had made 106 and Alastair Cook, in his first Test in England, 89.
Industry sectors news at a glance. Interactive heatmap, video and podcast
Everything the Business Traveller needs to know to make a better trip
Get ready for the winter sports season, with our resort guides and snow reports
We are backing British business, what is the confidence of the nation and what businesses are succeeding?
Growing demand for energy, oil that is harder to reach and the rise of carbon dioxide emissions. We examine the energy challenge
Enjoy further reading from Travel to Fashion, Business to Sport, discover more
Shortcuts to help you find sections and articles
36-month car lease
on contract hire for
£359.99 plus VAT pm
12 months for the price of 11 and a 5% discount.
Offer ends 31/11/09
Car Insurance
c£100,000 + car, bonus & bens
Lord Search & Selection
Midlands
Competitive salary + NHS pens
The Council for Healthcare Regulatory Excellence (CHRE)
London
Not Specified
The Sheppard Trust
London
£31,842 – £38,378pa
Charity Commision
London, Liverpool or Taunton
Moments from Battersea Park.
See your free Experian credit report beforehand
Book now & save over £100pp.
11 cool resorts, lowest prices... Early Booking offers 15 Nov.
20% off selected Azores holidays taken in October with Sunvil Discovery
Get covered on your travels with a superb range of policies at great prices. Visit InsureandGo.com
World Class Golf, Spa and preferential Beach Club. Private estate overlooking West Coast
Villas from £275 per night inclusive of Golf
Contact our advertising team for advertising and sponsorship in Times Online, The Times and The Sunday Times, or place your advertisement.
Times Online Services: Dating | Jobs | Property Search | Used Cars | Holidays | Births, Marriages, Deaths | Subscriptions | E-paper
News International associated websites: Globrix Property Search | Milkround
Copyright 2009 Times Newspapers Ltd.
This service is provided on Times Newspapers' standard Terms and Conditions. Please read our Privacy Policy.To inquire about a licence to reproduce material from Times Online, The Times or The Sunday Times, click here.This website is published by a member of the News International Group. News International Limited, 1 Virginia St, London E98 1XY, is the holding company for the News International group and is registered in England No 81701. VAT number GB 243 8054 69.