Warwickshire edged towards an LV= County Championship Division One victory after forcing Middlesex to follow on at Uxbridge.
Having conceded a first-innings deficit of 177, the hosts were at the crease once more after being dismissed for 309 - just 28 short of making Warwickshire bat again immediately.
Adam Voges followed his sublime first-innings 150 with a stoic, unbeaten 15 in 83 minutes yet Middlesex still limped to 147 for five in their second innings and trailed by 30 going into the final day.
Only 16 deliveries into Middlesex’s second innings, left-hander Dawid Malan attempted to cut Chris Woakes and chopped the ball onto his middle stump.
Then, just before tea, Sam Robson fenced a Boyd Rankin lifter to Rikki Clarke at second slip to bring together Neil Dexter and Joe Denly.
After a sticky start, the pair added 68 inside 15 overs before Dexter aimed to drive Keith Barker and feathered through to Tim Ambrose.
Voges, batting again before 5pm and with his side still 72 runs in arrears, then watched as Denly edged onto middle stump, while John Simpson nicked Rankin behind.
Resuming on 177 for four and requiring a further 160 to avoid the follow-on, Middlesex made a steady start through Voges and Simpson.
The duo posted a record fifth-wicket partnership for Middlesex against Warwickshire, eclipsing the county's previous best of 175 set by Paul Weekes and Jamie Dalrymple at Edgbaston in 2004.
They had bettered the record by only five when Simpson, shuffling forward to Jeetan Patel's skidding arm-ball, fell leg before for 63 to make it 208 for five.
In the next over, Voges moved to a 151-ball hundred with a single off Barker.
He became only the seventh Middlesex batsman to score a first-class hundred on debut since Edward Lyttelton did against the Australians at Lord's in 1878.
However, it was Warwickshire who were soon celebrating when Gareth Berg followed the very next ball from Barker and edged to Ambrose for a duck.
Barker was soon in the action again, taking a low catch at short square-leg to send back Ollie Rayner off Patel and, in the next over, having Toby Roland-Jones taken at first slip off an airy drive.
With Chris Wright out of the Warwickshire attack due to a back strain, Voges reached his 150 after lunch from 215 balls but, having helped add 72 in tandem with Ravi Patel, he danced down the pitch to clip a return catch to Jeetan Patel off a full-toss.
The hosts posted a third batting bonus point before their last man Corey Collymore drove a catch to mid-off, leaving Patel unbeaten on a creditable, career-best 26 as Warwickshire enforced the follow-on.