Somerset plunged Derbyshire further into relegation trouble after clinching an unlikely four-wicket victory on the final day of their LV= County Championship Division One fixture at Derby.
A draw looked the favourite outcome at the start of day four, however Somerset seamers Steve Kirby and Craig Meschede had other ideas as the men from the West Country grabbed their first win of the campaign.
Kirby (4-18) and Meschede (3-17) shared seven wickets to help bundle Derbyshire out for only 94 in 30.2 overs - giving Somerset a target of 145 in over two sessions, which they passed thanks to Nick Compton's half-century.
Derbyshire had gone into the fourth day strongly placed with a lead of 86 and eight wickets intact but only two more runs had been added when Somerset got the big wicket of Shivnarine Chanderpaul, who dabbed Alfonso Thomas into the hands of third slip.
Billy Godleman was caught behind as he pushed forward, Ben Slater was bowled first ball, and Richard Johnson gave Alex Barrow another catch to leave Derbyshire in deep trouble at 54-6.
The next blow was self-inflicted as Jonathan Clare wandered down the pitch and was run out by Jamie Overton's direct hit from mid-on but former Somerset batsman Wes Durston and Tony Palladino gave Derbyshire hope by nudging the lead towards 150.
They added 26 in nine overs but the introduction of Kirby at the City End saw the last three wickets fall for just four runs.
Palladino edged to second slip, Tim Groenewald could only fend a lifting ball to first slip and after Durston carved Overton over the slips for four, he was bowled going for a big drive.
Derbyshire knew they needed to strike early to spark panic in the visiting camp but Marcus Trescothick and Compton reduced the target by 30 in five overs before lunch, with Compton pulling Mark Footitt for six.
The pair took their stand to 60 before Trescothick got a leading edge off Clare to cover and although Compton was looking increasingly assured, it was a different story at the other end.
Dean Elgar flashed at Clare and was caught at first slip, James Hildreth offered no shot and was lbw for three and although Craig Kieswetter drove his first ball through the covers for four, he was caught behind off the next to leave Somerset wobbling on 102-4.
When Compton edged a big drive at Clare to first slip seven runs later, Derbyshire sensed they could still pull off an unlikely victory but Peter Trego settled Somerset's nerves with some aggressive strokes to carry his side to 20 points.