Bristol won their first Gallagher Premiership game of 2019 after a stirring display at Ashton Gate shaded play-off hopefuls Gloucester 28-24.
A penalty try 14 minutes from time proved the decisive moment of an intense west country derby as Gloucester's hopes of climbing above Harlequins into third place were dashed.
Flanker Dan Thomas and scrum-half Andy Uren touched down for Bristol, with Callum Sheedy kicking two penalties and Ian Madigan adding a conversion and late penalty to end a run of three Premiership defeats.
Bristol produced a strong display to earn a first Premiership win over Gloucester in 11 years
BRISTOL: C Piutau; Morahan, O'Conor, S Piutau (co-capt), Daniels; Sheedy, Uren; Y Thomas, Thacker, Afoa, Batley, Vui, Luatua, D Thomas, Crane (co-capt).
REPLACEMENTS: Parry, Woolmore, Thiede, Smith, Lam, Randall, Madigan, Protheroe.
TRIES: Thomas, Uren, Penalty
PEN: Sheedy 2, Madigan
GLOUCESTER: Woodward; Marshall, Twelvetrees, Atkinson, Thorley; Cipriani, Heinz (capt); Hohneck, Hanson, Balmain, Slater, Mostert, Ackermann, Kriel, Morgan.
REPLACEMENTS: Marais, Seville, Knight, Clarke, Polledri, Braley, Williams, Banahan.
TRIES: Woodward, Marshall, Thorley
CONS: Twelvetrees 3
REFEREE: Karl Dickson
Gloucester looked to be in control when wings Tom Marshall and Ollie Thorley scored tries in quick succession during the third quarter, which followed full-back Jason Woodward's earlier touchdown, while Billy Twelvetrees slotted all three conversions and kicked a penalty.
But he missed a straightforward penalty chance 11 minutes from time when Gloucester had two players in the sin-bin before Madigan stepped up to see Bristol home.
Bristol boss Pat Lam made five changes from the side beaten by Harlequins last weekend, which included a return for fit-again wing Luke Morahan, while Gloucester showed a solitary switch after defeating Saracens seven days ago, with hooker James Hanson called up to start.
And it was the home side that struck first, going ahead after just two minutes when they capitalised superbly on a stray Gloucester clearance kick.
Bristol gathered possession inside their own half, and they immediately went for broke as Steven Luatua delivered a brilliant offload to wing Luke Daniels, before Luatua's