Anis Mehmeti scored his first goal for Bristol City as they beat Stoke 2-1 to end the Potters' five-game unbeaten run.
Nick Powell gave Stoke the lead nine minutes before half-time, striking into the net from close range, after Nahki Wells and Andi Weimann both missed opportunities to put the visitors ahead.
Weimann had a goal ruled out for Bristol City for being offside early in the second half by the fourth official before Zak Vyner's header levelled the score.
Substitute Mehmeti then wrapped up the win five minutes from full-time for Bristol City's fifth consecutive win at the Bet365 Stadium.