Barnsley pulled out all the stops to chalk up a stunning victory over second division leaders Cardiff.
A committed team performance, highlighted by a two-goal blast from inspirational skipper Chris Morgan, helped the troubled Tykes to a welcome home win.
Barnsley are still in administration and have just three weeks to find a buyer but any interested party attending Oakwell on Saturday will have been impressed by the side's display, backed by a wonderful crowd.
Barnsley set off in determined fashion and deservedly got their noses in front in the 21st minute following a well-worked free-kick.
Mitch Ward took it wide on the right and skipper Morgan rose superbly at the far post to give City keeper Neil Alexander no chance with a firm header.
But while Barnsley were still celebrating Cardiff kicked off and grabbed an equaliser just 15 seconds later.
Striker Peter Thorne played in Rob Earnshaw and the lively Welsh international produced an unerring finish into the far corner.
Barnsley regained the lead on the half-hour mark and again it was a terrific set-piece move.
Paul Gibbs, having a blinder down the left, jogged over to the right flank and conjured up a fierce in-swinging cross that was glanced home by young striker Rory Fallon.
The Barnsley players were certainly fired up and were deserved leaders at that stage and Fallon almost grabbed his second with an edge of the box strike.
But Cardiff pulled level three minutes before the break, Gareth Whalley's low ball into the box seeing Earnshaw spin away from his marker before slotting home his second goal.
Cardiff lost Whalley through injury early in the second half but it was Barnsley who remained the likelier side to go on and win it and they made it a hat-trick of set-piece successes with their 64th minute winner.
Ward was again the provider with an inch-perfect free-kick to the far post and Morgan again rose above the Cardiff defence to find the far corner with a precise header. The nerves were frayed in the closing seconds but Barnsley held on for a vital victory