Leus du Plooy struck his maiden first-class century for Derbyshire as the hosts strengthened their position against Middlesex on Day Two of the Specsavers County Championship game.
Anuj Dal also hit 92 as Derbyshire declared on 557-6 on the second afternoon, before wickets from Luis Reece (2-37) and Tony Palladino (1-28) left the visitors 135-3 at the close of play.
Dawid Malan (39*) and Steven Finn (0*) will resume tomorrow, trailing by 422.
The fifth-wicket pair of du Plooy and Dal resumed Day Two with Derbyshire 372-4 after the hosts piled on the runs throughout the first day.
Having scored his first century for Derbyshire the 50-over Tourist Fixture against Australia A eight days ago, du Plooy brought up his maiden red-ball hundred for the county in 208 balls, including 12 fours and one six.
Dal then arrived at his half-century, taking 112 balls and striking three fours as part of a 133-run partnership for the fifth-wicket, which ended when du Plooy was caught by Nathan Sowter off George Scott shortly before lunch.
After the interval, Dal and Harvey Hosein (32 not out) moved their partnerhsip onto 75 before Dal was caught by Steven Finn off Toby Roland-Jones for a score of 92, as Derbyshire declared on 557-6, their highest-ever total against Middlesex.
The Middlesex opening pair of Sam Robson and Stevie Eskinazi put on 53 runs before the latter was caught by Matt Critchley off Luis Reece for 23 shortly before tea.
Fresh from his century earlier in the day, du Plooy was at the centre of the action again when he caught Robson (34) at first slip off Palladino shortly after the interval.
Gubbins and Malan added 67 for the third wicket before Reece claimed his second wicket of the day with just three overs left to bowl, trapping the former lbw for 37.
Middlesex will resume on Day Three 135-3, with Malan unbeaten on 39 and Finn yet to score, trailing by 422 runs.
Vitality Blast is back this month! Tickets for all seven home matches on sale now, including the big clash against Notts Outlaws on Friday 26 July. Buy online or call 01332 388 101.