Daniel Bogdanovic netted his 11th goal in the English Championship but could not prevent Barnsley from going down 5-3 at Ashton Gate last night.
Danny Haynes put Bristol City ahead after only two minutes. But Barnsley soon responded and two minutes later Hugo Colace made it 1-1.
Bogdanovic put Barnsley ahead on 24 minutes when he hammered the ball past Dean Gerken from 12 yards.
Bristol City restored equilibrium on 43 minutes through a Nicky Maynard goal.
After the interval Bristol City took control scoring three times through Maynard (52), Haynes (63) and a Paul Hartley penalty on 76 minutes.
On 81 minutes, Andy Gray pulled a goal back for Barnsley who remain 13th in the standings with 49 points.