Manchester - Fernandinho volleyed in an 89th-minute winner as Manchester City survived throwing away a two-goal lead to beat Aston Villa 3-2 and cement a place in the English Premier League's top four for the soon-to-be-deposed champions.
Sergio Aguero pounced on an early mistake by goalkeeper Brad Guzan to give City a third-minute lead, and Aleksandar Kolarov made it 2-0 in the 66th when he curled a free kick through the defensive wall.
Villa looked like salvaging a point after goals by Tom Cleverley and Carlos Sanchez - following misjudgments by goalkeeper Joe Hart - pulled the relegation strugglers level by the 85th.
There was still time for a City corner to drift through a crowded penalty box to Fernandinho, who chested the ball down before finding the net from eight meters.
City moved provisionally to second place - above Arsenal and Manchester United, who both play on Sunday - and more importantly is now nine points clear of the fading chasers for the Champions League qualification places.
Defensive or goalkeeping errors led to the first four goals at Etihad Stadium - and Guzan's blunder was the worst.
The American keeper was dropped for Shay Given last weekend when Villa beat Liverpool at Wembley Stadium to reach the FA Cup final. Guzan came straight back into the team - he is a regular for Villa in the league, despite the pressure being applied by Given - and made a dreadful error with one of his first touches.
Fielding a back-pass, Guzan attempted a first-time pass with his left foot, only to mis-hit the ball. It dropped into the path of Aguero, who slotted the ball into an empty net from eight meters for his league-leading 21st goal of the campaign.
City had scored at least four goals against Villa in their last four meetings at the Etihad, but the visitors' response to going behind suggested this would not be another walkover.
Christian Benteke wasted a one-on-one chance by shooting straight at Hart in the 27th, while City's defense struggled to handle Villa's up-and-coming playmaker Jack Grealish in the final part of the first half.
Kolarov extended City's lead, but Villa's players again only had themselves to blame. The left back's free kick attempt found a gap in the defensive wall between Leandro Bacuna and Kieran Richardson, and the ball crept inside the post despite the efforts of Guzan.
Villa pulled a goal back two minutes later when Cleverley - a former Manchester United player - drove home a shot after Eliaquim Mangala and then Fernando failed to clear the ball adequately from a Villa free kick. Hart had initially come out to collect the cross and was backpedalling as Cleverley's low effort flew past him.
Yet another poor result for under-pressure City manager Manuel Pellegrini looked on when Sanchez hooked in a neat finish after Hart's weak punch from a corner, but Fernandinho's late goal sealed City's eighth straight home win over Villa.
Villa is only two points clear of the relegation zone despite an improvement under new manager Tim Sherwood.