edinson cavani scored in either half to send napoli above their visitors and into pole position to claim the second group a qualifying berth.
ssc napoli have their uefa champions league fate in their own hands after beating manchester city fc 2-1 to go second in group a.
edinson cavani crowned a wonderful performance with goals either side of mario balotelli's first-half equaliser, to move walter mazzarri's men a point clear of their visitors. they will travel to villarreal cf in a fortnight knowing a round of 16 place is theirs provided they match whatever city manage at home to section winners fc bayern münchen.
roberto mancini's side had taken the game to their hosts from the whistle, with yaya touré firing over and balotelli curling just wide from the edge of the area. yet after sucking up the early pressure, napoli began to bare their teeth.
the impressive ezequiel lavezzi raced the length of the field to receive cavani's return and tee up marek hamšík, whose header was saved. cavani and lavezzi combined well throughout, and almost scored spectacularly when the latter met cavani's flick first time. his fierce 25-metre shot flew just wide.
the momentum was with the hosts and after joe hart had tipped gökhan inler's shot over, napoli took the lead as cavani stole in at the near post to head in through a crowd of players. he might have scored again moments later, racing on to hamšík's through ball only to find the side netting.
city gradually imposed themselves, through the industry of james milner, the power of touré and the prompting of david silva. silva helped conjure the equaliser, as his low shot was parried by morgan de sanctis, and balotelli helped himself to the rebound.
silenced descended, but not for long; napoli started the second half with renewed vigour. lavezzi was again involved in their goal, feeding andrea dossena, whose left-wing cross was converted by cavani.
the match was keenly poised. city, desperate to salvage the draw that would preserve their two-point lead over their opponents, piled forward in search of another equaliser; napoli looked to kill the tie on the break. they may have done just that when hamšík brought down cavani's sublime crossfield pass, beat aleksandar kolarov and shot against a post.
city dominated the final stages, forcing de sanctis into another fantastic save from balotelli, who subsequently headed over after silva and samir nasri had prised the home defence open. in the last throes sergio agüero was thwarted by the excellent de sanctis after dancing through; saves that leave napoli in pole position to join bayern.