Tony Palladino and Tim Groenewald each claimed five-wicket hauls to set up an enthralling finale in Derbyshire’s LV= County Championship Division One clash with Somerset.
The pacemen were the first Derbyshire bowlers to take five apiece in an innings since Andrew Harris and Paul Aldred, also against Somerset at Derby in 1999.
Palladino took 5-97 on his return after a seven-week absence with a side strain while Groenewald enjoyed even better figures of 5-30.
Somerset were bowled out for 216 on day three, when only 23.3 overs were possible, which gave Derbyshire a lead of 50.
However, Steve Kirby hit back by striking twice before bad light forced an early finish with the home side leading by 86 runs on 36 for two.
Derbyshire needed to polish off Somerset quickly when the game resumed at 3:45pm, and struck with the fourth ball of the day as Craig Meschede prodded at Groenewald to be caught behind.
Peter Trego had been dropped on one the previous evening and was given another life on 23 when he aimed a cut at Groenewald; his former Somerset team-mate Wes Durston spilled the chance diving to his right at first slip.
But it did not prove costly as Trego added only five before he was bowled aiming a loose drive at Groenewald, who claimed his fifth when trapping Kirby lbw for a duck.
With the floodlights on due to poor light, Palladino matched his seam partner’s feat by having Jamie Overton caught at first slip.
Chesney Hughes got a leading edge to his first ball from Kirby and Alfonso Thomas dived forward at mid-on to take the catch, and the fast bowler had a confident appeal for a catch behind against Wayne Madsen turned down.
Billy Godleman twice drove Overton through the covers for four and Madsen whipped Kirby past square-leg for another boundary but Somerset struck again in the ninth over.
Madsen edged Kirby to third slip, although Somerset were denied the chance to build on that breakthrough when the umpires decided that, even with the floodlights on, the light was too poor for play.