Peterborough withstood a fierce Bolton comeback to win a thrilling game at London Road.
Lee Tomlin and Dwight Gayle had Posh two goals ahead after five minutes, and after Keith Andrews pulled one back from the spot, George Thorne made it 3-1 two minutes after the break.
Andrews added another penalty but Mark Little and Gabriel Zakuani gave the hosts a three-goal lead.
But Benik Afobe and Martin Petrov both scored to set up a tense finish.
Darren Ferguson's side remain bottom of the Championship despite their second successive win.
Tomlin broke on to George Boyd's cross-field pass to guide past Adam Bogdan and Gayle added a second on the half-volley.
After Zakuani was penalised for holding Sam Ricketts at a corner, Andrews scored the resulting spot-kick but Thorne restored the two-goal margin by sweeping in from the edge of the area two minutes after the break.
Andrews converted another penalty after Joe Newell fouled Afobe but Little finished from Newell's cross and Zakuani headed in from Tomlin's ball to make it 5-2.
Dougie Freedman's Bolton cut the lead when Afobe finished Petrov's corner from close-range.
Petrov then produced a powerful finish with three minutes left, but Peterborough held on.
Peterborough manager Darren Ferguson: "The game should really have been over at 5-2 and we can't afford the make the sort of lapses in concentration that we did late on.
"We are in a battle to stay up and goal difference could be a factor so we cannot afford to give soft goals away, but I don't want to be too critical of my players after producing such a good performance against a team that were in the Premier League this time last year.
Bolton boss Dougie Freedman: "We knew that individual mistakes could well influence a game played in very testing conditions and that is an area in which we let ourselves down.
"We weren't in the game for the opening 20 minutes and full credit to Peterborough for the way they started.
"But we were much-improved in the second half and it was pleasing to see the players continue to show such desire even when it looked as though the match had gone."
Sorry, we were unable to load match stats, please try again.
Live Text Commentary
Full Time The referee brings the game to a close.90:00 +2:05
The referee gives a free kick against Lee Tomlin for handball. Adam Bogdan takes the free kick.88:02
Free kick taken by Craig Alcock.88:02 Substitution
Substitution Craig Alcock is brought on as a substitute for Mark Little.88:02
Free kick awarded for a foul by Martin Petrov on Mark Little.86:39
Marvin Sordell provided the assist for the goal.86:39 Goal scored
Goal! - Martin Petrov - Peterboro 5 - 4 Bolton A goal is scored by Martin Petrov from inside the penalty area high into the middle of the goal. Peterborough 5-4 Bolton.86:17
Unfair challenge on Jay Spearing by Michael Bostwick results in a free kick. Stephen Warnock restarts play with the free kick.84:04
Martin Petrov provided the assist for the goal.84:04 Goal scored
Goal! - Benik Afobe - Peterboro 5 - 3 Bolton Benik Afobe finds the back of the net with a headed goal from close in. Peterborough 5-3 Bolton.83:43
Corner from the right by-line taken by Martin Petrov,83:27
Martin Petrov takes a shot. Save by Robert Olejnik.82:04
Assist by Lee Tomlin.82:04 Goal scored
Goal! - Gabriel Zakuani - Peterboro 5 - 2 Bolton Gabriel Zakuani finds the back of the net with a headed goal from inside the six-yard box. Peterborough 5-2 Bolton.81:33
Corner taken by Lee Tomlin,80:39 Substitution
Substitution Martin Petrov is brought on as a substitute for Keith Andrews.78:43 Substitution
Substitution Joe Newell leaves the field to be replaced by Kane Ferdinand.78:43
Unfair challenge on Tyrone Mears by Dwight Gayle results in a free kick. Chris Eagles sends in a cross, Samuel Ricketts takes has a header from just inside the penalty box which clears the crossbar.77:53
A cross is delivered by Chris Eagles, Robert Olejnik manages to make a clearance.77:22
Keith Andrews takes a shot. Michael Bostwick gets a block in.
Lee Tomlin challenges Tyrone Mears unfairly and gives away a free kick. Tyrone Mears restarts play with the free kick.75:18
George Boyd takes a shot. Save by Adam Bogdan.71:12
Chris Eagles takes the outswinging corner, Chris Eagles takes a shot. Corner taken by Chris Eagles from the left by-line, Keith Andrews takes a shot. Save by Robert Olejnik. Corner taken by Chris Eagles from the right by-line, Chris Eagles takes a shot. Joe Newell gets a block in. Chris Eagles takes a outswinging corner from the right by-line played to the near post, Gabriel Zakuani manages to make a clearance. Robert Olejnik makes a save.70:49
Keith Andrews takes a shot. Save made by Robert Olejnik.69:44
The ball is sent over by Tommy Rowe, Dwight Gayle takes a shot. Blocked by Stephen Warnock. Corner taken by George Boyd from the left by-line, Gabriel Zakuani has an effort at goal from the edge of the area that misses to the right of the target.69:01
Unfair challenge on Nathaniel Knight-Percival by Kevin Davies results in a free kick. Robert Olejnik takes the direct free kick.68:08
Assist on the goal came from Joe Newell.68:08 Goal scored
Goal! - Mark Little - Peterboro 4 - 2 Bolton Mark Little gets on the score sheet with a goal from the edge of the penalty area to the top right corner of the goal. Peterborough 4-2 Bolton.66:36
Free kick awarded for a foul by Jay Spearing on Robert Olejnik. Robert Olejnik takes the free kick.65:55
Tyrone Mears produces a cross, Chris Eagles takes the outswinging corner, Gabriel Zakuani makes a clearance. Nathaniel Knight-Percival gets a block in.64:13
Marvin Sordell takes a shot. Comfortable save by Robert Olejnik.63:11
Lee Tomlin has an effort from just inside the box that misses to the left of the target.58:53
Corner from the right by-line taken by Lee Tomlin, clearance made by Samuel Ricketts. George Thorne produces a right-footed shot from outside the penalty area and misses left.58:36
The ball is sent over by Mark Little, Zat Knight manages to make a clearance.57:36
Corner from the right by-line taken by Chris Eagles, comfortable save by Robert Olejnik.56:34
Chris Eagles takes a shot. Blocked by Lee Tomlin.56:14
Short corner taken by Chris Eagles from the left by-line.55:46
Joe Newell takes a shot. Save by Adam Bogdan.55:16 Goal scored
Goal! - Keith Andrews - Peterboro 3 - 2 Bolton Placed penalty scored by Keith Andrews. Peterborough 3-2 Bolton.54:23
Foul by Joe Newell on Benik Afobe, Penalty awarded.52:23
Corner taken left-footed by Chris Eagles from the left by-line, Michael Bostwick manages to make a clearance.51:11
Centre by Stephen Warnock, clearance made by Gabriel Zakuani.49:52 Substitution
Substitution (Bolton) makes a substitution, with Marvin Sordell coming on for Chung-Yong Lee.49:52 Substitution
Substitution (Bolton) makes a substitution, with Benik Afobe coming on for Jacob Butterfield.46:55 Goal scored
Goal! - George Thorne - Peterboro 3 - 1 Bolton George Thorne finds the net with a goal from the edge of the penalty area to the bottom left corner of the goal. Peterborough 3-1 Bolton.46:22
Mark Little delivers the ball.45:01
The referee gets the second half underway.45:00 +3:15 Half time
Half Time The match has reached half-time.45:00 +2:31 Goal scored
Goal! - Keith Andrews - Peterboro 2 - 1 Bolton Keith Andrews scores a placed penalty. Peterborough 2-1 Bolton.45:00 +1:29
Inswinging corner taken by Jacob Butterfield, Gabriel Zakuani challenges Samuel Ricketts unfairly and gives away a Penalty.45:00 +1:10
Tyrone Mears produces a cross, Tyrone Mears gets a block in.44:35
Effort from the edge of the area by George Boyd goes wide of the left-hand post.43:30
Free kick awarded for a foul by Jay Spearing on Nathaniel Knight-Percival. Free kick taken by Lee Tomlin.42:20
Chung-Yong Lee concedes a free kick for a foul on Lee Tomlin. Free kick taken by Robert Olejnik.39:10
A cross is delivered by Tommy Rowe, Keith Andrews makes a clearance.38:52
George Boyd fouled by Jay Spearing, the ref awards a free kick. Direct free kick taken by George Thorne.37:50
Corner taken right-footed by Lee Tomlin, Effort from deep inside the area by Gabriel Zakuani misses to the left of the target.36:40
Direct effort from the free kick comes in from Lee Tomlin, save by Adam Bogdan.36:40 Booking
Booking Keith Andrews booked.36:29
Keith Andrews challenges Joe Newell unfairly and gives away a free kick.34:27
Foul by Kevin Davies on Michael Bostwick, free kick awarded. Direct free kick taken by Michael Bostwick.30:28
George Boyd challenges Chung-Yong Lee unfairly and gives away a free kick. Direct free kick taken by Keith Andrews.30:14
George Boyd takes a shot. Blocked by Samuel Ricketts.29:20
Free kick awarded for a foul by Keith Andrews on George Thorne. Direct free kick taken by Robert Olejnik.27:10
George Boyd takes a shot. Corner taken short by George Boyd. Corner taken left-footed by George Boyd from the right by-line, Keith Andrews manages to make a clearance. Zat Knight gets a block in.25:53
Lee Tomlin takes the direct free kick.25:53 Booking
Booking Samuel Ricketts goes into the referee's book for unsporting behaviour.25:41
Samuel Ricketts concedes a free kick for a foul on Dwight Gayle.25:10
Jacob Butterfield is flagged offside by the assistant referee. Robert Olejnik restarts play with the free kick.24:56
Centre by Chung-Yong Lee, Nathaniel Knight-Percival makes a clearance.24:39
The ball is sent over by Stephen Warnock, George Thorne makes a clearance.22:52
Free kick awarded for an unfair challenge on Stephen Warnock by George Boyd. Adam Bogdan takes the direct free kick.20:51 Booking
Booking Kevin Davies receives a yellow card for unsporting behaviour.20:20
Kevin Davies concedes a free kick for a foul on Michael Bostwick. Direct free kick taken by George Thorne.19:04 Booking
Booking Booking for Jacob Butterfield for unsporting behaviour.16:26
Foul by Joe Newell on Keith Andrews, free kick awarded. Keith Andrews restarts play with the free kick.14:56
Foul by Lee Tomlin on Tyrone Mears, free kick awarded. Adam Bogdan takes the direct free kick.13:39
Outswinging corner taken from the right by-line by Lee Tomlin.13:22
Lee Tomlin takes a shot from just outside the area and strikes the post.11:15
George Boyd takes the outswinging corner, Stephen Warnock manages to make a clearance.10:57
Short corner taken by George Boyd from the right by-line.10:39
A cross is delivered by Mark Little, save made by Adam Bogdan.10:16
Foul by Keith Andrews on George Thorne, free kick awarded. Direct free kick taken by George Thorne.8:47
Effort by George Boyd from a long way out goes over the crossbar.7:25
Effort from outside the box by Jacob Butterfield goes wide right of the target.5:08
Assist by Tommy Rowe.5:08 Goal scored
Goal! - Dwight Gayle - Peterboro 2 - 0 Bolton Dwight Gayle scores a goal from inside the penalty area to the top right corner of the goal. Peterborough 2-0 Bolton.4:31
The ball is crossed by George Boyd, Dwight Gayle takes a shot. Save by Adam Bogdan.3:24
Stephen Warnock concedes a free kick for a foul on Mark Little. Free kick taken by George Thorne.1:43
The assist for the goal came from Michael Bostwick.1:43 Goal scored
Goal! - Lee Tomlin - Peterboro 1 - 0 Bolton Lee Tomlin finds the back of the net with a goal from inside the penalty box to the bottom right corner of the goal. Peterborough 1-0 Bolton.0:50
Inswinging corner taken by Jacob Butterfield from the right by-line, Gabriel Zakuani makes a clearance.0:00
The ref blows the whistle to begin the match.
Live data and text provided by our data suppliers