Ollie Rayner claimed career-best figures of 8/46 and took two catches as Middlesex moved into a position of strength on a spin friendly pitch against Surrey at the Kia Oval.
Rayner achieved the unique feat of being involved with all ten wickets to fall in Surrey's first innings, as the relegation threatened hosts were bundled out for just 145 to give Middlesex a first innings lead of 149.
That had stretched to 282 at the close, despite left-arm spinner Gary Keedy continuing the excellent day for spin bowling by taking all five to fall for 42 runs. The visitors reached stumps on 133/5.
Rayner's effort was the performance of the day though, as the giant off-spinner improved on his previous best first-class return of 8/96. It was his sixth five wicket haul.
He also snaffled catches for the other two wickets of Surrey's first innings, off James Harris and fellow spinner Ravi Patel - who claimed the key wicket of Hashim Amla - in a feat reminiscent of Durham bowler Graham Onions's nine wickets and a run out against Nottinghamshire in 2012.
Neil Dexter had earlier been denied a second championship century of the summer as Middlesex added just 14 more for their last three wickets. Club captain Dexter was left stranded unbeaten on 90.