Glamorgan 359 (Carlson 83, Meschede 55, van der Gugten 50) and 175 (Taylor 4-15) beat Leicestershire 132 and 270 (Klein 94, Hogan 4-30) by 132 runs
After Glamorgan had reduced Leicestershire to 102 for 8 shortly before tea, they would have been ready to celebrate their second Championship win of the season, but the Leicestershire tailenders had other ideas, and the home team had to wait until the first ball of the penultimate over before the final wicket fell, with Glamorgan winning by 132 runs.
Dieter Klein, batting at No. 10, joined Callum Parkinson and the ninth-wicket pair stayed for 17 overs to add 72, before Parkinson was bowled by Michael Hogan for 31. Gavin Griffiths and Klein then further frustrated Glamorgan with Klein going on to score a career-best 94, before he was leg before to Timm van der Gugten - the last two Leicestershire wickets adding 168 runs.
Klein faced 100 balls, striking a six and fifteen fours and he deserved a century. If the senior batsmen had only emulated his approach, the visitors could have challenged the stiff target of 403.
Meanwhile, Glamorgan can reflect on a season where they won their first and last Championship games but, although they were without senior players with Marchant de Lange playing only three Championship games and Shaun Marsh four, they underperformed with their young players lacking confidence.
Glamorgan resumed on 106 for 4 at the start of play, but any thoughts of quick runs and a declaration were quickly dispelled, as Leicestershire's seamers mare early inroads. Jeremy Lawlor failed to add to his overnight score when he was bowled by Tom Taylor for 21, who then dismissed Craig Meschede and top scorer Chris Cooke in quick succession.
Taylor, who was making his Leicestershire Championship debut, but who was injured for most of the season, was easily Leicestershire's most impressive bowler, ending with excellent figures of 12.4-7-15-4.
The visitors had three overs before lunch, but lost Ateeq Javed to Michael Hogan's first ball, and when Colin Ackerman departed to van der Gugten, Leicestershire were 4 for 2. Mark Cosgrove was on a king pair against his former county and though he avoided that tamely chipped Hogan to midwicket.
Hogan relied on his seamers and when Meschede was brought into the attack he had Lewis Hill caught low down by wicketkeeper Cooke, before the same combination dismissed Harry Dearden for 24.
Taylor then showed he has the attributes of becoming an useful allrounder with some firm drives through the offside before nicking Hogan to first slip. Leicestershire were then 102 for 8, but Klein and Parkinson settled to share a productive partnership with both players playing every ball on merit and making sure that their team did not lose before tea.
They put on 72 in 17 overs, before Parkinson was yorked by Hogan for 31, the Glamorgan captain taking his season's tally to 44 wickets.