Spinners Dean Cosker and Andrew Salter shared seven wickets as Glamorgan sealed their second LV= County Championship Division Two victory of the season, beating Leicestershire by an innings and 37 runs at Swansea.
Cosker finished with figures of 4-88 and Salter 3-66 - giving him match figures of 5-100 on his championship debut - as Leicestershire were bowled out for 268. Glamorgan took a maximum 24 points to the visitors' three.
Bottom club Leicestershire had been staring down the barrel of defeat after being skittled for 203 in their first innings and then having to watch the hosts compile 508 for nine declared.
Glamorgan made a positive start by removing Shiv Thakor with the third ball of the day after Leicestershire resumed on 134 for two, still 171 behind.
Thakor edged Cosker to wicketkeeper Mark Wallace before the slow left-armer struck twice more to have Leicestershire in trouble at 178 for five.
First Matthew Boyce edged to Jim Allenby at slip before Cosker grabbed the prize wicket of Ned Eckersley for 67 after more than three hours in the middle.
Seamer Michael Hogan broke through the defences of Tom Wells before Salter struck to have Ben Raine snaffled at slip by Allenby.
Leicestershire were further reduced to 213 for eight when Ollie Freckingham was bowled by Cosker eight minutes prior to lunch.
That wicket heralded a delay in the interval and immediately Leicestershire found themselves 218 for nine when James Sykes edged Salter to second slip.
Josh Cobb, with his championship best of the season 46 not out, showed some late defiance, hitting Salter and Cosker for a six apiece as the 10th wicket put on 50.
But the match came to an end when last man Alex Wyatt, after a career-best 28, edged Graham Wagg to Hogan at second slip.