Cardiff - day three
Derbyshire 206 (G G Wagg 61 no, R D B Croft 5-62) & 287 (T R Birt 84, M G Dighton 60, R D B Croft 6-88) v Glamorgan 225 (G P Rees 61, G G Wagg 4-63) & 226 (G P Rees 109, A G Botha 5-67)
Derbyshire (18pts) beat Glamorgan (4pts) by 42 runs
Glamorgan suffered a dramatic final-day collapse to snatch defeat from the jaws of victory against Derbyshire.
The Welsh side looked well on course to chase down a target of 269 thanks to a century from Gareth Rees.
The opener - who managed 61 in the first innings - hit a career-best score of 109 as the hosts made serene progress to 185-1.
However, with the winning post in sight Glamorgan suddenly began to lose wickets, Rees and Richard Grant falling in successive overs.
They lost three more with the score stuck on 214, Ant Botha claiming two of them on his way to figures of 5-67.
Tom Lungley came on to mop up the tail, last man Simon Jones going for a second-ball duck as Derbyshire completed an unlikely 42-run win.
The visitors had earlier collapsed themselves, slipping from 271-6 to 287 all out in their second innings.
Robert Croft picked up four wickets for 12 in 27 balls to leave him just 10 victims short of 1,000 in first-class cricket.Day two
Travis Birt and Michael Dighton struck half-centuries to help Derbyshire build a lead of 242 runs against Glamorgan by the close of the second day at Cardiff.
The Australian pair allowed Derbyshire to reach 261-6 in their second innings and built on the good work of Graham Wagg with the ball earlier in the day.
Wagg claimed figures of 4-63 as Glamorgan were bowled out for 225 in their first innings, having started the day at 179-5.
Robert Croft claimed a five-wicket haul as Derbyshire were bowled out for 206 on the opening day against Glamorgan at Cardiff.
Only number nine Graham Wagg with an unbeaten 61 impressed after Derbyshire skipper Simon Katich won the toss and elected to bat first.
Glamorgan reached 179-5 in reply by the close, mainly thanks to 61 from opener Gareth Rees.