Jon Stead scored twice as Bristol City gave their survival hopes a boost with an emphatic win against Barnsley.
Stead nodded in the opener before Liam Fontaine stabbed in a second.
City scored two quick goals after the break, Stead converting Fontaine's pass and Lewin Nyatanga heading home.
Chris O'Grady poked in for Barnsley but Steven Davies slotted home a fifth for City before Tomasz Cywka's volley and Jason Scotland's long-range goal gave Barnsley some respectability.
The victory was Bristol City's fourth in succession at home and moves them to within three points of safety.
City's home comforts
The win means Bristol City have completed four successive league victories on home soil for the first time since April 2011
For Barnsley, it brought an to end a six-match unbeaten run and meant they dropped to 21st in the table, two points above the drop zone.
Stead was lively from the outset and headed over the bar before he was prevented from getting a shot off by the challenge of Stephen Foster.
However, the former Blackburn striker put the home side ahead in the 16th minute, applying the finishing touch after Marvin Elliott headed on Paul Anderson's corner.
Keeper Tom Heaton protected the Robins' advantage in the 27th minute when he kept out Martin Cranie's close-range header.
It proved to be an important intervention as Fontaine's close-range finish soon after doubled City's advantage.
The victory was as good as assured when City scored two quickfire goals, Stead tucking in his second of the game with the ball taking a slight deflection on its way into the net and Nyantaga heading in from six yards.
O'Grady stabbed in following a goalmouth scramble to briefly threaten a potential fightback, but City restored their four-goal advantage when Davies pounced on a poor back pass to fire beyond Luke Steele.
Barnsley rallied in the latter stages as Cywka volleyed in from the edge of the area and Scotland made it 5-3 with a shot from distance in stoppage time.
But City had already done enough to take all three points which will undoubtedly give them a real confidence boost as they look to avoid relegation.
Bristol City manager Sean O'Driscoll said: "I said after our defeats at Cardiff and Crystal Palace that the spirit had not been knocked out of us and this display proved it.
"We still have a long way to go, but if the players can maintain that level of commitment we will give ourselves a chance.
"Our home form is good and we have improved in away games without getting any reward as yet."
Barnsley manager David Flitcroft said: "I knew our great run had to end somewhere, but the way it ended surprised me. The goals we conceded were very poor.
"We couldn't defend set-pieces and it is back to the training ground in that respect. And we couldn't handle City's strikers.
"Jon Stead and Steven Davies out-muscled us for most of the game. But we will dust ourselves down and come again."
- 01 Heaton
- 04 Fontaine
- 05 Nyatanga
- 17 Cunningham
- 19 Moloney
- 10 Kelly (Kilkenny - 76' )
- 15 Pearson (Howard - 79' )
- 21 Anderson (Adomah - 76' )
- 25 Elliott
- 09 Stead
- 16 Davies
- 22 Gerken
- 02 Foster
- 39 Bates
- 08 Kilkenny
- 11 Howard
- 27 Adomah
- 29 Burns
- 01 Steele
- 06 Foster Booked (O'Grady - 38' )
- 15 McNulty
- 25 Cranie
- 33 Kennedy
- 05 Delap
- 08 O'Brien (Scotland - 56' )
- 11 Perkins
- 28 Tunnicliffe
- 13 Dagnall
- 16 Harewood (Cywka - 63' )
- 30 Lidakevicius
- 02 Hassell
- 14 Wiseman
- 19 Cywka
- 21 Mellis
- 09 Scotland
- 27 O'Grady
Live Text Commentary
Full Time The referee blows his whistle to end the game.90:00 +4:28
Jason Scotland produces a right-footed shot from just outside the penalty box that misses to the left of the goal.90:00 +2:55
David Perkins takes a shot. Save made by Tom Heaton.90:00 +2:22
The referee blows for offside against Jon Stead. Jimmy McNulty restarts play with the free kick.90:00 +1:27
Brian Howard decides to take the corner short.90:00 +0:59
Short corner worked by Brian Howard.90:00 +0:07 Goal scored
Goal! - Jason Scotland - Bristol C 5 - 3 Barnsley Jason Scotland gets on the score sheet with a goal from just outside the area to the bottom right corner of the goal. Bristol City 5-3 Barnsley.88:48
Effort from inside the area by Steven Davies misses to the left of the target.87:56
The assistant referee signals for offside against Jason Scotland. Free kick taken by Tom Heaton.86:38
Chris O'Grady takes a shot. Save by Tom Heaton.83:57
Tomasz Cywka produces a right-footed shot from deep inside the penalty box which goes wide of the right-hand upright.82:50
Corner taken by Tom Kennedy, Chris O'Grady has a headed effort at goal from deep inside the area missing to the right of the target.82:38
Jason Scotland takes a shot. Blocked by Lewin Nyatanga.81:03 Goal scored
Goal! - Tomasz Cywka - Bristol C 5 - 2 Barnsley Tomasz Cywka grabs a goal from inside the penalty area to the bottom left corner of the goal. Bristol City 5-2 Barnsley.78:32
Free kick taken by Luke Steele.78:32 Substitution
Substitution Stephen Pearson goes off and Brian Howard comes on.78:32
Free kick awarded for a foul by Steven Davies on David Perkins.76:11
The referee blows for offside. Tom Heaton restarts play with the free kick.75:06 Substitution
Substitution Liam Kelly leaves the field to be replaced by Neil Kilkenny.75:06 Substitution
Substitution (Bristol City) makes a substitution, with Albert Adomah coming on for Paul Anderson.
The ball is sent over by Rory Delap.73:29
Corner from the right by-line taken by Stephen Pearson, clearance by Jason Scotland.72:59
Effort from the edge of the area by Stephen Pearson goes wide of the right-hand post.72:26
Chris O'Grady takes a shot. Save by Tom Heaton.71:21
Steven Davies challenges Martin Cranie unfairly and gives away a free kick. Jimmy McNulty restarts play with the free kick.69:55
Liam Fontaine gives away a free kick for an unfair challenge on Jason Scotland. Shot comes in from Tom Kennedy from the free kick.66:47
Stephen Pearson provided the assist for the goal.66:47 Goal scored
Goal! - Steven Davies - Bristol C 5 - 1 Barnsley Steven Davies finds the net with a headed goal from close range. Bristol City 5-1 Barnsley.66:11
Corner taken by Stephen Pearson,65:51
Steven Davies takes a shot. Save by Luke Steele.64:28
The referee blows for offside against Chris O'Grady. Tom Heaton restarts play with the free kick.64:13
Jon Stead takes a shot. Brilliant save by Luke Steele.62:31 Substitution
Substitution (Barnsley) makes a substitution, with Tomasz Cywka coming on for Marlon Harewood.61:39
Shot from deep inside the area by Martin Cranie clears the crossbar.61:21
Corner taken by Tom Kennedy from the left by-line.61:09
Liam Kelly concedes a free kick for a foul on David Perkins. Tom Kennedy restarts play with the free kick.60:11
Effort on goal by Martin Cranie from just outside the area goes harmlessly over the target.59:33
Corner taken by Tom Kennedy from the left by-line, clearance by Liam Fontaine.59:01
Corner taken left-footed by Tom Kennedy, Jon Stead makes a clearance.58:35
Free kick awarded for an unfair challenge on Tom Kennedy by Stephen Pearson. Free kick taken by Tom Kennedy.57:34 Goal scored
Goal! - Chris O'Grady - Bristol C 4 - 1 Barnsley Chris O'Grady fires in a goal from deep inside the penalty box to the bottom right corner of the goal. Bristol City 4-1 Barnsley.54:31 Substitution
Substitution (Barnsley) makes a substitution, with Jason Scotland coming on for Jim O'Brien.54:31
Marvin Elliott provided the assist for the goal.54:31 Goal scored
Goal! - Lewin Nyatanga - Bristol C 4 - 0 Barnsley Lewin Nyatanga scores a headed goal from inside the six-yard box. Bristol City 4-0 Barnsley.53:52
Inswinging corner taken left-footed by Stephen Pearson from the right by-line,51:12
Steven Davies provided the assist for the goal.51:12 Goal scored
Goal! - Jon Stead - Bristol C 3 - 0 Barnsley Jon Stead scores a goal from deep inside the penalty area low into the middle of the goal. Bristol City 3-0 Barnsley.50:09
Jimmy McNulty concedes a free kick for a foul on Jon Stead. Steven Davies crosses the ball from the free kick right-footed from right wing,46:44
Ryan Tunnicliffe takes a shot. Blocked by Lewin Nyatanga.45:01
The second half begins.45:00 +2:06 Half time
Half Time The ref blows to end the first period.41:27
Brendan Moloney takes a shot. Save made by Luke Steele.40:53
Stephen Pearson takes a inswinging corner from the right by-line to the near post, clearance made by Marlon Harewood.40:40
Jon Stead takes a shot. Ryan Tunnicliffe gets a block in.39:15
Marlon Harewood takes a shot. Blocked by Lewin Nyatanga.38:18
Unfair challenge on Liam Fontaine by Chris Dagnall results in a free kick. Tom Heaton takes the indirect free kick.37:27 Substitution
Substitution Chris O'Grady replaces Stephen Foster.35:38
Steven Davies restarts play with the free kick.35:38 Booking
Booking Stephen Foster is booked.35:25
Stephen Foster gives away a free kick for an unfair challenge on Steven Davies.34:26
The assist for the goal came from Brendan Moloney.34:26 Goal scored
Goal! - Liam Fontaine - Bristol C 2 - 0 Barnsley Liam Fontaine finds the net with a goal from close in to the top left corner of the goal. Bristol City 2-0 Barnsley.33:59
Short corner taken by Paul Anderson.33:44
Paul Anderson takes a shot. Jimmy McNulty gets a block in.32:46
Marlon Harewood takes a shot. Lewin Nyatanga gets a block in.29:57
Marlon Harewood takes a shot. Tom Heaton makes a comfortable save.28:59
Marvin Elliott fouled by Ryan Tunnicliffe, the ref awards a free kick. Tom Heaton restarts play with the free kick.25:23
Chris Dagnall takes a shot from long range which goes wide of the right-hand post.25:04
Liam Fontaine gives away a free kick for an unfair challenge on Marlon Harewood. David Perkins restarts play with the free kick.24:23
The ball is delivered by Stephen Pearson.24:07
Stephen Pearson takes a short corner.23:22
Chris Dagnall gives away a free kick for an unfair challenge on Greg Cunningham. Tom Heaton takes the free kick.21:10
Inswinging corner taken right-footed by Jim O'Brien from the left by-line, comfortable save by Tom Heaton.20:08
Foul by Lewin Nyatanga on Marlon Harewood, free kick awarded. The ball is sent over by Tom Kennedy, Chris Dagnall takes a shot. Save by Tom Heaton.17:23
Jon Stead concedes a free kick for a foul on Jim O'Brien. Martin Cranie takes the indirect free kick.15:36
Assist by Marvin Elliott.15:36 Goal scored
Goal! - Jon Stead - Bristol C 1 - 0 Barnsley Jon Stead finds the back of the net with a headed goal from inside the box. Bristol City 1-0 Barnsley.14:42
Inswinging corner taken right-footed by Paul Anderson, Marvin Elliott takes a shot. Blocked by Jimmy McNulty.13:45
The assistant referee flags for offside against Marlon Harewood. Tom Heaton takes the free kick.12:03
Tom Kennedy takes the inswinging corner, Tom Heaton makes a fantastic save.11:49
Rory Delap takes a shot. Save made by Tom Heaton.10:32
Marvin Elliott takes a shot. Blocked by Jimmy McNulty.8:55
Jon Stead takes a shot. Stephen Foster gets a block in.6:53
Jon Stead takes a shot. Save by Luke Steele.4:09
Ryan Tunnicliffe takes a shot. Save made by Tom Heaton.3:15
Header from close range by Jon Stead clears the bar.0:00
The ref blows the whistle to start the match.
Live data and text provided by our data suppliers