Jamie Vardy scored a last-minute equaliser to earn Leicester City a draw and deny Barnsley their first Championship victory in 10 games.
The Foxes took a deserved early lead when Anthony Knockaert drilled home a left-footed shot from 12 yards.
But Stephen Dawson's 12-yard effort and Reuben Noble-Lazarus's spectacular overhead kick put the Tykes ahead.
However, there was late drama as Vardy made it 2-2, striking from close range after good work from David Nugent.
Rare Barnsley goals
This was only the second time Barnsley had scored more than one goal in a league game this season, although they remain the division's lowest scorers with 21 goals from 21 games.
Leicester, who beat rivals Derby 4-1 last week, made a bright start as Tykes goalkeeper Luke Steele tipped Martyn Waghorn's shot around a post after John Stones had fouled Lloyd Dyer.
Two minutes later, Steele again denied Waghorn before the hosts went ahead through Knockaert's fifth goal of the season.
But Stephen Dawson struck past Leicester goalkeeper Kasper Schmeichel from 12 yards to make it 1-1 after 27 minutes.
Noble-Lazarus's spectacular finish to give the visitors a shock lead came after a move involving Jim O'Brien.
Another Waghorn effort from distance was well held by Steele before Knockaert twice went close, first with a right-footed shot and then a headed chance.
Leicester substitute Vardy grabbed a dramatic equaliser with his first goal since the end of September to secure a point for the Foxes.
Leicester City manager Nigel Pearson told BBC Radio Leicester:
"We started the game very well, scored an early goal but conceded two really poor goals and we gave a side that hadn't been in the game something to hang on to.
"They came here to frustrate us and it was hard to break them down.
"For 90% of the second half we were camped in their half but they made the route to goal very blocked.
"They wasted time when they could but ultimately when we were on top we gifted them two goals and that's the biggest disappointment."
Barnsley's assistant manager Dave Flitcroft said:
"It was very disappointing to concede the late equaliser but at the same time there was a sense of pride that we had taken a point against one of the best sides in the league.
"Leicester are a team I think can win the Championship, so it is a real positive to have earned something against them.
"We came here with a game plan to press them and be in their face. We knew we had to match them, and I thought we did.
"Our goalkeeper Luke Steele was incredible early on and then we scored the two goals that I felt were deserved."
Sorry, we were unable to load match stats, please try again.
Live Text Commentary
Full Time The referee signals the end of the game.90:00 +5:34
Scott Wiseman concedes a free kick for a foul on Zak Whitbread. Free kick taken by Kasper Schmeichel.90:00 +4:55
Outswinging corner taken right-footed by Ben Marshall, Zak Whitbread takes a shot. Scott Wiseman makes a clearance.90:00 +4:39
Shot from 12 yards from Ben Marshall. David Perkins makes a clearance.90:00 +4:00
Effort on goal by Marko Futacs from deep inside the area goes harmlessly over the bar.90:00 +3:08
The ball is crossed by Jamie Vardy, Andy King takes a shot. Scott Wiseman makes a clearance.90:00 +2:04
Effort on goal by Craig Davies from inside the penalty box misses to the right of the target.90:00 +1:38
Close range effort by Andy King goes wide of the left-hand post.90:00 +1:19
Effort from 12 yards by Andy King. Luke Steele makes a save.90:00 +0:48
Craig Davies is flagged offside by the assistant referee. Kasper Schmeichel restarts play with the free kick.89:43
Assist on the goal came from David Nugent.89:43 Goal scored
Goal! - Jamie Vardy - Leicester 2 - 2 Barnsley A goal is scored by Jamie Vardy from close in to the bottom left corner of the goal. Leicester 2-2 Barnsley.88:41
Unfair challenge on Scott Golbourne by Danny Drinkwater results in a free kick. Jonathan Greening takes the direct free kick.87:16
Free kick awarded for a foul by Kelvin Etuhu on Wes Morgan. Strike comes in from Ben Marshall from the free kick, save by Luke Steele.87:00
Foul by Craig Davies on Zak Whitbread, free kick awarded. Direct free kick taken by Kasper Schmeichel.86:05
Ben Marshall takes a outswinging corner from the right by-line played to the near post, Scott Golbourne makes a clearance. Headed chance falls to Zak Whitbread, clearance by Scott Golbourne.85:25
Jamie Vardy has an effort at goal from just inside the box that misses to the right of the target.83:15
Marko Futacs fouled by Kelvin Etuhu, the ref awards a free kick. Ben Marshall produces a shot on goal direct from the free kick, save by Luke Steele.81:27
The assistant referee signals for offside against Craig Davies. Kasper Schmeichel takes the indirect free kick.79:41 Substitution
Substitution Kelvin Etuhu on for Reuben Noble-Lazarus.
Substitution David Perkins on for John Stones.79:07
The referee blows for offside. Kasper Schmeichel restarts play with the free kick.77:43
Drilled right-footed shot by Andy King. Save by Luke Steele.76:29
Ben Marshall takes a outswinging corner.75:53
Corner taken right-footed by Ben Marshall to the near post, clearance made by Scott Wiseman.75:53 Substitution
Substitution (Leicester) makes a substitution, with Marko Futacs coming on for Lloyd Dyer.75:11
David Nugent takes the chance to get an effort at goal. Reuben Noble-Lazarus gets a block in.74:26
Shot from just outside the area by Danny Drinkwater misses to the right of the target.73:11
Corner taken by Ben Marshall from the right by-line played to the near post, clearance made by Stephen Dawson.71:24
Zak Whitbread fouled by Reuben Noble-Lazarus, the ref awards a free kick. Zak Whitbread takes the direct free kick.69:13
Scott Golbourne restarts play with the free kick.69:13 Booking
Booking Ben Marshall is shown a yellow card.68:48
Ben Marshall gives away a free kick for an unfair challenge on Reuben Noble-Lazarus.68:09
Andy King has an effort at goal. Save by Luke Steele.67:36 Substitution
Substitution (Leicester) makes a substitution, with Jamie Vardy coming on for Martyn Waghorn.67:12 Substitution
Substitution Marcus Tudgay joins the action as a substitute, replacing Akos Buzsaky.63:49
Outswinging corner taken left-footed by Martyn Waghorn from the left by-line, clearance by Reuben Noble-Lazarus.62:27
Free kick awarded for an unfair challenge on Danny Drinkwater by Jonathan Greening. Ben Marshall restarts play with the free kick.60:51
Free kick awarded for a foul by Craig Davies on Wes Morgan. Danny Drinkwater takes the free kick.59:30 Substitution
Substitution Ben Marshall comes on in place of Anthony Knockaert.58:28
Free kick awarded for an unfair challenge on Ritchie De Laet by Craig Davies. Direct free kick taken by Kasper Schmeichel.57:13
Anthony Knockaert produces a header from deep inside the six-yard box that clears the crossbar.56:30
Jim O'Brien concedes a free kick for a foul on Paul Konchesky. Direct free kick taken by Martyn Waghorn.55:45
Shot by Akos Buzsaky. Luke Steele makes a save.55:20
Unfair challenge on Zak Whitbread by Jim O'Brien results in a free kick. Direct free kick taken by Zak Whitbread.54:29
Shot by Anthony Knockaert. Martin Cranie gets a block in. Effort on goal by Anthony Knockaert from inside the penalty box misses to the right of the target.54:06
Martyn Waghorn takes the direct free kick.54:06 Booking
Booking Scott Wiseman receives a yellow card.53:49 Booking
Booking The referee books David Nugent for unsporting behaviour.52:42
David Nugent fouled by Scott Wiseman, the ref awards a free kick.49:51
Shot from outside the area by Anthony Knockaert misses to the left of the goal.45:01
The game restarts for the second half.45:00 +4:11 Half time
Half Time The players leave the pitch at half time.43:27
Akos Buzsaky has an effort at goal from just outside the area which goes wide of the left-hand post.42:59
Shot by Martyn Waghorn. Save by Luke Steele.40:33
Corner from the left by-line taken by Martyn Waghorn, clearance made by Scott Wiseman.40:16
The ball is delivered by Martyn Waghorn, clearance made by Scott Wiseman.38:38
The assist for the goal came from Jim O'Brien.38:38 Goal scored
Goal! - Reuben Noble-Lazarus - Leicester 1 - 2 Barnsley Reuben Noble-Lazarus scores a goal from close range to the top right corner of the goal. Leicester 1-2 Barnsley.37:50
Corner taken by Akos Buzsaky.37:16
Danny Drinkwater gives away a free kick for an unfair challenge on Akos Buzsaky. Jonathan Greening takes the free kick.37:01
Free kick awarded for a foul by Lloyd Dyer on Jim O'Brien. Direct free kick taken by Martin Cranie.35:49
Akos Buzsaky takes a outswinging corner.33:55
Anthony Knockaert takes the chance to get an effort at goal. Jonathan Greening gets a block in.32:37
Paul Konchesky fouled by Jim O'Brien, the ref awards a free kick. The free kick is swung in left-footed by Martyn Waghorn, save by Luke Steele.29:14
Centre by Jim O'Brien.28:09
Martyn Waghorn takes a outswinging corner.27:48
Inswinging corner taken from the left by-line by Martyn Waghorn.27:27
Effort on goal by Lloyd Dyer from inside the area goes harmlessly over the bar.26:14 Goal scored
Goal! - Stephen Dawson - Leicester 1 - 1 Barnsley Goal scored by Stephen Dawson from deep inside the penalty area low into the middle of the goal. Leicester 1-1 Barnsley.24:43
Foul by David Nugent on Scott Wiseman, free kick awarded. Luke Steele takes the direct free kick.24:05
Stephen Dawson concedes a free kick for a foul on Andy King. Anthony Knockaert takes the free kick.22:21
Akos Buzsaky challenges Andy King unfairly and gives away a free kick. Kasper Schmeichel takes the free kick.20:12
The referee blows for offside against Craig Davies. Kasper Schmeichel takes the indirect free kick.17:24
John Stones produces a cross, save made by Kasper Schmeichel.16:00
Free kick awarded for an unfair challenge on Danny Drinkwater by Craig Davies. Andy King restarts play with the free kick.15:15
Foul by Paul Konchesky on Jim O'Brien, free kick awarded. Jonathan Greening takes the free kick.14:42
Unfair challenge on John Stones by Martyn Waghorn results in a free kick. Free kick taken by Luke Steele.12:59
Martyn Waghorn is ruled offside. Luke Steele takes the indirect free kick.8:14 Goal scored
Goal! - Anthony Knockaert - Leicester 1 - 0 Barnsley Goal scored by Anthony Knockaert from deep inside the penalty area to the bottom right corner of the goal. Leicester 1-0 Barnsley.6:59
The official flags Reuben Noble-Lazarus offside. Kasper Schmeichel takes the free kick.4:58
Inswinging corner taken by Martyn Waghorn from the left by-line played to the near post, save by Luke Steele.4:18
Shot by Martyn Waghorn. Save by Luke Steele.2:28
Martyn Waghorn takes the inswinging corner, clearance by Martin Cranie.1:11
John Stones concedes a free kick for a foul on Lloyd Dyer. Shot on goal comes in from Martyn Waghorn from the free kick, Luke Steele makes a save.0:00
The game kicks-off.
Live data and text provided by our data suppliers