Cardiff 1-2 Peterborough
Peterborough moved off the bottom of the Championship with a deserved win to end leaders Cardiff's perfect home record.
Michael Bostwick gave Peterborough a first-half lead when his powerful free-kick left David Marshall with no chance.
The visitors doubled their lead early in the second half when Dwight Gayle finished off a counter-attacking move.
Rudy Gestede pulled a goal back but it was too little, too late for Cardiff.
Despite the defeat and an end to their 100% home record, Malky Mackay's side remain top after Crystal Palace drew 2-2 at Birmingham
The sides were separated by 31 points and 23 places at the start of the afternoon and Peterborough had picked up only one point from their previous eight games.
Players and supporters took part in a minute's applause prior to kick-off in memory of former Cardiff City owner Rick Wright, following his death at the age of 81.
Cardiff made a good start to the game and although they had the ball in the back of the net after four minutes, Heidar Helguson's header from Craig Bellamy's free-kick was ruled out for offside.
Goalkeeper David Marshall was called into action for the first time to deny George Boyd and the midfielder's deflected shot was then acrobatically cleared off the line by Ben Turner.
Having survived those scares it was under controversial circumstances that Cardiff fell behind on 22 minutes.
Referee David Coote penalised Helguson and awarded a free-kick on the edge of the penalty area to the visitors despite Cardiff protestations they should have been given the decision.
And their sense of injustice was compounded when from the resultant free-kick, Boyd rolled the ball to Bostwick, who fired an unstoppable shot which left Marshall with no chance
After the shock of conceding, Cardiff rallied and Bostwick cleared a Bellamy header off the line before Craig Noone's shot was well gathered by Robert Olejnik.
Despite Cardiff's possession and chances Peterborough's well organised defence held firm and they were worthy of their 1-0 interval lead.
Within two minutes of the restart Cardiff's defence were caught napping and Darren Ferguson's side doubled their advantage.
The impressive Lee Tomlin fed Gayle and the on-loan Dagenham striker raced through, slotting coolly past Marshall.
Peterborough could and should have added to their tally with Gayle's low, powerful shot tipped wide by Marshall.
Cardiff looked out of sorts and Helguson wasted two chances to reduce the deficit while Gayle should have wrapped up the victory for Posh but he fired straight at Marshall.
The home side set up a tense finale when substitute Gestede turned in Turner's flick on with a minute remaining but they could not find another goal despite six minutes of stoppage time.
Defeat means Cardiff's lead at the top of the Championship is reduced to two points, while Peterborough climbed off the bottom ahead of Sheffield Wednesday's visit to Barnsley.
Cardiff manager Malky Mackay:
"There are no easy games in this division and everyone can beat everyone - we are disappointed to lose.
"On another day Heidar (Helguson) could have scored five. We had 20 attempts on goal, did everything but score and weren't clinical. That wasn't good enough.
"We were beaten and can play much better. We want to be as consistent as possible and the league table shows that, but we have to work hard every week.
"We were bound to lose at home at some point, but full credit to Peterborough. They deserved the win."
Peterborough boss Darren Ferguson:
"We have beaten the best team in the league and also won at Hull so that shows we can beat any team in this league.
"It's a very good day. But we haven't been consistent enough this season. I have always believed in the players and maintained the confidence that we can get the job done - but we need to produce consistent performances.
"We played very well but we did so last week. The difference was we defended well too. We stuck to the game plan and deserved the win but we didn't finish them off.
"We were hanging on a bit at the end. But if we continue to perform like that we will be fine in this league."
Live Text Commentary
Full Time The referee ends the match.90:00 +1:15
Rudy Gestede sends in a cross.89:38 Booking
Booking Ben Turner is shown a yellow card for unsporting behaviour.89:35 Booking
Booking Booking for Lee Tomlin for unsporting behaviour.88:16
Assist on the goal came from Ben Turner.88:16 Goal scored
Goal! - Rudy Gestede - Cardiff 1 - 2 Peterboro Rudy Gestede finds the net with a goal from deep inside the penalty box to the bottom right corner of the goal. Cardiff 1-2 Peterborough.87:35
Aron Gunnarsson produces a cross, clearance by Gabriel Zakuani. Corner taken left-footed by Peter Whittingham to the near post, clearance by Dwight Gayle.86:16
Short corner taken by Craig Bellamy. The ball is swung over by Jordon Mutch, clearance made by Craig Alcock. Ben Turner takes a shot. Save made by Robert Olejnik.85:51
Lee Tomlin takes a shot. David Marshall makes a save.83:37
Aron Gunnarsson sends in a cross, Header from deep inside the area by Heidar Helguson goes over the bar.83:26
Unfair challenge on Craig Noone by Mark Little results in a free kick. Direct free kick taken by Craig Bellamy.81:13 Substitution
Substitution Shaun Brisley is brought on as a substitute for Tommy Rowe.81:13 Substitution
Substitution Kane Ferdinand is brought on as a substitute for Joe Newell.81:13
Craig Noone fouled by Tommy Rowe, the ref awards a free kick. Free kick crossed by Peter Whittingham.80:16
Craig Noone challenges Tommy Rowe unfairly and gives away a free kick. Direct free kick taken by Robert Olejnik.79:31
Centre by Craig Noone, Close range shot by Rudy Gestede goes wide of the left-hand upright.79:01
The assistant referee flags for offside against George Boyd. Peter Whittingham takes the direct free kick.78:17
Craig Bellamy takes a inswinging corner from the left by-line played to the near post, Joe Newell makes a clearance.77:34
Craig Bellamy crosses the ball, clearance by Michael Bostwick.77:08
George Boyd produces a cross, Dwight Gayle takes a shot. Save by David Marshall.
Craig Noone produces a cross.76:00
Lee Tomlin produces a cross, clearance by Matthew Connolly. George Boyd produces a left-footed shot from just outside the penalty box that misses to the left of the goal.74:44
Craig Noone takes a inswinging corner from the right by-line to the near post, Matthew Connolly has a headed effort from close in and clears the bar.74:26
Unfair challenge on Jordon Mutch by Joe Newell results in a free kick. Direct free kick taken by Peter Whittingham.73:43
Effort from inside the area by Heidar Helguson misses to the right of the goal.72:39
Dwight Gayle takes a shot. Save made by David Marshall. Lee Tomlin decides to take the corner short. The referee blows for offside against Lee Tomlin. Indirect free kick taken by David Marshall.71:38
The ball is crossed by Jordon Mutch, Robert Olejnik makes a save.71:05
Dwight Gayle takes a shot. David Marshall makes a save.70:04
George Boyd gives away a free kick for an unfair challenge on Craig Bellamy. Direct free kick taken by Peter Whittingham.67:53 Substitution
Substitution Craig Alcock comes on in place of Nathaniel Knight-Percival.67:20
The ball is swung over by Craig Bellamy, Heidar Helguson produces a right-footed shot from outside the penalty area and misses left.64:27
Craig Noone produces a cross, save made by Robert Olejnik.63:01
Free kick taken by David Marshall.63:01 Substitution
Substitution Craig Conway leaves the field to be replaced by Rudy Gestede.63:01
Dwight Gayle takes a shot. David Marshall makes a save. Outswinging corner taken right-footed by Lee Tomlin, Tommy Rowe challenges Aron Gunnarsson unfairly and gives away a free kick.61:31
Peter Whittingham takes the inswinging corner, Matthew Connolly has a header from inside the six-yard box and clears the crossbar.61:06
George Thorne takes a shot. David Marshall makes a save. Dwight Gayle is ruled offside. Free kick taken by David Marshall.59:27
Foul by Gabriel Zakuani on Jordon Mutch, free kick awarded. Direct strike on goal from the free kick comes in from Peter Whittingham, save made by Robert Olejnik. Peter Whittingham takes a inswinging corner to the near post, clearance by Joe Newell.58:48
The assistant referee signals for offside against Dwight Gayle. Free kick taken by David Marshall.57:53
George Boyd takes a shot. Outswinging corner taken right-footed by Lee Tomlin from the left by-line, save by David Marshall.56:30
The ball is sent over by Lee Tomlin, clearance by Matthew Connolly. Outswinging corner taken by Lee Tomlin from the right by-line, Dwight Gayle takes a shot. Save by David Marshall. Lee Tomlin takes a inswinging corner from the left by-line to the near post, Andrew Taylor manages to make a clearance.56:16
Foul by Andrew Taylor on George Thorne, free kick awarded. Robert Olejnik takes the direct free kick.55:30
Handball decision goes against Ben Turner. Robert Olejnik restarts play with the free kick.54:56 Booking
Booking Gabriel Zakuani receives a caution for time wasting.54:08
Free kick awarded for a foul by Andrew Taylor on Mark Little. George Boyd restarts play with the free kick.53:02
Effort from deep inside the area by Peter Whittingham clears the bar.51:56
David Marshall takes the direct free kick.51:56 Substitution
Substitution Jordon Mutch on for Don Cowie.51:56
Mark Little challenges Craig Conway unfairly and gives away a free kick.50:19 Substitution
Substitution Aron Gunnarsson on for Kevin McNaughton.49:25
Inswinging corner taken by Peter Whittingham from the right by-line played to the near post, clearance made by Joe Newell. Don Cowie sends in a cross, save made by Robert Olejnik.48:26
Joe Newell takes a shot. Save by David Marshall.47:29
Dwight Gayle is caught offside. Free kick taken by Don Cowie.46:14
Assist by Lee Tomlin.46:14 Goal scored
Goal! - Dwight Gayle - Cardiff 0 - 2 Peterboro Dwight Gayle gets on the score sheet with a goal from inside the six-yard box low into the middle of the goal. Cardiff 0-2 Peterborough.46:01
Craig Conway crosses the ball, clearance by Nathaniel Knight-Percival.45:45
Free kick awarded for an unfair challenge on Craig Conway by George Boyd. Craig Conway takes the free kick.45:32
Craig Noone sends in a cross, clearance made by Tommy Rowe.45:01
The match restarts for the second half.45:00 +3:22 Half time
Half Time The ref blows to signal half-time.45:00 +2:13
Foul by Michael Bostwick on Craig Bellamy, free kick awarded. Peter Whittingham takes the free kick.45:00 +0:20
Peter Whittingham produces a strike on goal direct from the free kick, save by Robert Olejnik. Inswinging corner taken by Peter Whittingham. Shot on goal by Craig Conway from just inside the area goes over the target.45:00 +0:20 Booking
Booking Nathaniel Knight-Percival is booked.45:00 +0:09
Nathaniel Knight-Percival challenges Craig Noone unfairly and gives away a free kick.44:21
Effort on goal by George Boyd from just inside the box goes harmlessly over the target.43:07
Direct free kick taken by Nathaniel Knight-Percival.43:07 Booking
Booking Don Cowie is cautioned.43:03
Don Cowie gives away a free kick for an unfair challenge on Joe Newell.40:22
Effort on goal by Andrew Taylor from long distance goes over the crossbar.39:49
The ball is crossed by Kevin McNaughton, Mark Little makes a clearance. Corner taken by Craig Bellamy, Michael Bostwick manages to make a clearance.38:08
Foul by Mark Little on Craig Conway, free kick awarded. Craig Bellamy delivers the ball from the free kick right-footed from left wing, save made by Robert Olejnik.36:33
Heidar Helguson gives away a free kick for an unfair challenge on Lee Tomlin. Michael Bostwick restarts play with the free kick.35:27
Inswinging corner taken by Peter Whittingham, clearance made by George Thorne.34:58
Unfair challenge on Craig Conway by George Boyd results in a free kick. Free kick taken by Peter Whittingham.34:45
Craig Bellamy crosses the ball, save by Robert Olejnik.33:09
Nathaniel Knight-Percival challenges Craig Noone unfairly and gives away a free kick. The free kick is delivered left-footed by Peter Whittingham from right wing, Joe Newell makes a clearance.32:15
Inswinging corner taken by Craig Bellamy from the left by-line played to the near post, clearance made by Lee Tomlin.31:36
Inswinging corner taken right-footed by Craig Bellamy, save made by Robert Olejnik.30:46
The ball is swung over by Craig Bellamy, Craig Noone takes a shot. Robert Olejnik makes a save.30:28
Joe Newell produces a cross.29:25
A cross is delivered by Craig Noone, Craig Bellamy takes a shot. Gabriel Zakuani manages to make a clearance.28:33
Corner taken right-footed by Craig Bellamy from the left by-line, save by Robert Olejnik.28:20
Centre by George Boyd, David Marshall makes a save.26:55
Craig Bellamy is caught offside. Robert Olejnik takes the indirect free kick.24:53
Dwight Gayle challenges Ben Turner unfairly and gives away a free kick. Peter Whittingham restarts play with the free kick.24:27
Shot from just outside the area by Craig Bellamy misses to the left of the target.23:02
Free kick awarded for a foul by Lee Tomlin on Matthew Connolly. Matthew Connolly takes the direct free kick.21:51
Assist on the goal came from Lee Tomlin.21:51 Goal scored
Goal! - Michael Bostwick - Cardiff 0 - 1 Peterboro Goal scored by Michael Bostwick from just outside the penalty box to the top left corner of the goal. Cardiff 0-1 Peterborough.20:47
Lee Tomlin restarts play with the free kick,20:47 Booking
Booking Heidar Helguson booked.20:47
Heidar Helguson gives away a free kick for an unfair challenge on Gabriel Zakuani.19:09
Direct free kick taken by George Thorne.19:09 Booking
Booking Matthew Connolly is booked.19:02
Lee Tomlin fouled by Matthew Connolly, the ref awards a free kick.17:32
The offside flag is raised against Dwight Gayle. David Marshall restarts play with the free kick.16:04
Craig Noone crosses the ball, clearance by Robert Olejnik.15:15
Foul by Mark Little on Craig Conway, free kick awarded. David Marshall takes the direct free kick.15:03
Ben Turner gives away a free kick for an unfair challenge on Dwight Gayle. Free kick taken by George Boyd.12:31
The ball is crossed by Craig Noone, Robert Olejnik makes a save.9:10
Outswinging corner taken right-footed by Lee Tomlin from the right by-line, clearance by Matthew Connolly. Lee Tomlin decides to take a short corner.8:10
The assistant referee signals for offside against Craig Bellamy. Michael Bostwick takes the free kick.7:09
Centre by Tommy Rowe, George Boyd takes a shot. Save by David Marshall.5:55
The assistant referee flags for offside against Craig Bellamy. Free kick taken by Michael Bostwick.5:31
George Boyd has an effort at goal from outside the box missing to the wide left of the goal.4:20
Craig Bellamy takes the free kick. The referee blows for offside. Robert Olejnik takes the free kick.4:20 Booking
Booking Booking for Michael Bostwick.4:07
Free kick awarded for an unfair challenge on Craig Conway by Michael Bostwick.3:15
Free kick awarded for a foul by Craig Noone on Nathaniel Knight-Percival. Nathaniel Knight-Percival takes the free kick.2:15
Craig Noone takes a shot. Clearance by Robert Olejnik.0:00
The referee starts the match.
Live data and text provided by our data suppliers