In-form captain Michael Klinger scored 44 and Ian Cockbain 34 during Gloucestershire’s 165-8 innings.
Johann Myburgh and Jim Alllenby opened with a 44 to set the visitors on their way to victory.
Myburgh was out eventually for 63 in the 18th over, before James Hildreth’s unbeaten 25 saw Somerset claim the win with two balls left.
Gloucestershire are next in action this Friday, June 26th against Sussex – click here to buy your ticket for the game.