Match ends, Barnsley 5, Queens Park Rangers 3.
Barnsley beat QPR to win for just the third time in the Championship this season, with Conor Chaplin grabbing a hat-trick at Oakwell.
Barnsley's Chaplin opened the scoring in the seventh minute, before Luke Amos tapped in a rebound to equalise for QPR.
Chaplin completed his hat-trick with goals either side of half-time to give Barnsley a 3-1 lead before Amos grabbed his second to halve the deficit.
Cauley Woodrow's penalty on the hour made it 4-2, and Bambo Diaby netted a fifth, with Ilias Chair scoring a late consolation goal for Rangers in the 94th minute.
Barnsley's only other wins this season had been against Hull in November and Fulham on the opening day of the season.
But they were good value for their lead, Chaplin netting with a first-time shot following Jacob Brown's low cross.
After Amos' equaliser, Chaplin restored the home side's lead by firing a half-volley into the roof of the net and completed his hat-trick in the second half, turning in a rebound from a Joe Lumley save.
Amos made it 3-2 when Samuel Sahin-Radlinger parried Ryan Manning's cross straight to the Tottenham loanee.
Woodrow was then brought down in the penalty area after 60 minutes, and Barnsley's top-scorer stepped up to convert the spot-kick and claim his ninth goal of the season.
QPR rallied late on, with Eberechi Eze forcing a fine save from Tykes keeper Sahin-Radlinger and Chair striking the crossbar for the visitors in the second half.
However, defender Diaby netted Barnsley's fifth before Chair pulled a late goal back as Barnsley ran out 5-3 winners.
Barnsley head coach Gerhard Struber said:
"I'm very, very happy for my team and also for every Barnsley fan. I think this was a very important game for us to create a good performance and also gain important points.
"It was a very difficult week and in the end we have four points. It is our big challenge to stay in the league and I see today the mentality is not like a relegation team, which is very important for us.
"We have to deal with our defence in the next week. I have a plan for the next week over what we need to do to get better in the defence."
QPR manager Mark Warburton said:
"We can't defend like that. We've been really solid for three games but we've come and let ourselves down today, it's as simple as that.
"We've had a few heated words in the dressing room so I haven't seen a replay of the penalty yet and it wouldn't be fair to comment yet. Our players were not happy, but I'm not sure any player would be happy to give away a penalty.
"We knew that Barnsley would be a team scrapping for their lives, with young, hungry players. We spoke as a group about what we would face today.
"It's a tough place to come to and we had to meet that challenge. We can't give away soft goals and expect to win."
- 22OduorSubstituted forMcGeehanat 83'minutes
- 4DougallBooked at 84mins
- 10BähreSubstituted forThomasat 31'minutesBooked at 68mins
- 27MowattBooked at 85mins
- 7BrownBooked at 81mins
- 4HallBooked at 89mins
- 3WallaceSubstituted forWellsat 56'minutesBooked at 85mins
- 5CameronSubstituted forChairat 67'minutesBooked at 81mins
- Keith Stroud
- Shots on Target
Second Half ends, Barnsley 5, Queens Park Rangers 3.
Goal! Barnsley 5, Queens Park Rangers 3. Ilias Chair (Queens Park Rangers) right footed shot from the centre of the box to the bottom left corner. Assisted by Bright Samuel.
Attempt saved. Conor Chaplin (Barnsley) left footed shot from the left side of the box is saved in the centre of the goal. Assisted by Cameron McGeehan with a through ball.
Offside, Barnsley. Cameron McGeehan tries a through ball, but Cauley Woodrow is caught offside.
Grant Hall (Queens Park Rangers) is shown the yellow card for a bad foul.
Cauley Woodrow (Barnsley) wins a free kick on the left wing.
Foul by Grant Hall (Queens Park Rangers).
Foul by Cameron McGeehan (Barnsley).
Luke Amos (Queens Park Rangers) wins a free kick in the defensive half.
Nahki Wells (Queens Park Rangers) is shown the yellow card.
Alex Mowatt (Barnsley) is shown the yellow card.
Kenneth Dougall (Barnsley) is shown the yellow card for hand ball.
Hand ball by Kenneth Dougall (Barnsley).
Substitution, Barnsley. Cameron McGeehan replaces Clarke Oduor.
Goal! Barnsley 5, Queens Park Rangers 2. Bambo Diaby (Barnsley) right footed shot from very close range to the centre of the goal. Assisted by Jacob Brown with a cross following a set piece situation.
Jacob Brown (Barnsley) is shown the yellow card.
Ilias Chair (Queens Park Rangers) is shown the yellow card for a bad foul.
Jacob Brown (Barnsley) wins a free kick in the attacking half.
Foul by Ilias Chair (Queens Park Rangers).