Glamorgan secured just their second LV= County Championship Division Two triumph of the season midway through day four of their clash with Leicestershire at Swansea.
Spinners Dean Cosker and Andrew Salter shared seven wickets as the hosts bowled out their opponents for 268, meaning the final margin of victory was an innings and 37 runs.
Resuming on 134-2 still 171 runs behind, Leicestershire's hopes of clinging on were dealt an early blow when Shiv Thakor fell to the third ball of the morning.
Dean Cosker claimed the early scalp and then also dismissed both Matthew Boyce and Ned Eckersley, who made a determined 67, to leave the visitors struggling at 178-5.
Seamer Michael Hogan broke through the defences of Tom Wells before Salter struck, getting Ben Raine caught at slip by Jim Allenby for 11.
Ollie Freckingham was bowled by Cosker and with Glamorgan pushing back lunch in the hoping of finishing the game, James Sykes edged Salter to second slip.
Josh Cobb, with his Championship best of the season, 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 edged Graham Wagg to Hogan at second slip to fall for a career-best 28.
Glamorgan, who had made 508-9 in their only innings in the match, took a maximum 24 points for their efforts, with Leicestershire picking up three.