Blackpool winger Matt Phillips scored a fine hat-trick to condemn Barnsley to a third consecutive Championship defeat.
Barnsley went ahead as Matty Done steered in from six yards following Jim O'Brien's cross.
Phillips replied with a thumping drive then struck an even better effort, cutting in from the left and finishing from 30 yards, to make it 2-1.
He added his third from the penalty spot late on after Scott Wiseman fouled Stephen Crainey.
They were Phillips's first goals for Blackpool since he returned from a productive loan spell at Sheffield United in early November.
The result lifted Blackpool up to seventh, a point adrift of Reading, who occupy the final play-off spot.
Blackpool had an early chance as midfielder Ludovic Sylvestre shot over from 25 yards, but Barnsley fired a warning when Ricardo Vaz Te dragged an angled drive wide.
Done snatched the lead for the hosts to spark a period of Blackpool dominance. They deservedly equalised when Phillips finished well from outside the area.
There were chances at both ends before Blackpool made the crucial breakthrough after Phillips collected Sylvestre's pass and produced his solo run and strike.
Barnsley fought on as Jay McEveley and Jacob Butterfield shot on target, but their hopes were ruined when Wiseman fouled Crainey and Phillips tucked in the spot-kick.