Glamorgan secured a dramatic victory in dying light to get their Specsavers County Championship campaign off to a winning start.
James Bracey's marathon 120 not out, led Gloucestershire to 372 and deep into the final session, and meant Glamorgan needed 83 to win in 21 overs in their second innings.
After a solid opening partnership from Nick Selman and Jack Murphy, Glamorgan lost a cluster of wickets before Aneurin Donald struck the winning runs with a hooked six.
"It was a tough day's cricket, it was a tough four days cricket," said Head Coach Robert Croft.
"We've dominated this match but the fight-back from Gloucestershire on a very flat wicket was commendable and expected, then the effort throughout the day by our big fast bowlers was beyond belief.
"The light was a challenge and added some nerves to the dressing-room but we deserved that win. This ground doesn't give up wins easily, historically it's a very flat pitch- you have to be very good to get a win and we were in this game."
LISTEN// Head Coach Robert Croft chats with BBC Sport Wales