mario gomez's hat-trick took bayern to the verge of the last 16, but the hosts endured a nervous finale in a game both sides ended with ten men.
mario gomez's first-half hat-trick put fc bayern münchen within touching distance of the uefa champions league knockout phase, though the german hosts endured a real scare as ssc napoli pulled it back to 3-2.
the bundesliga leaders made light work of the visitors in a dominant opening period, with gomez making it 13 goals in his last ten appearances in the competition. two headers from federico fernández threatened to turn the tie as both sides were reduced to ten men in the second half, but bayern held on to pull three points clear at the top of group a.
jupp heynckes' side were greeted by a smart choreography depicting "the way home" to this year's final at the fußball arena münchen, but the considerable visiting contingent made themselves heard early on. ezequiel lavezzi stirred them up with two probing runs down the right, also dragging wide a shot from the left.
the napoli fans fell silent when gomez resumed normal duty with the opening goal on 17 minutes. bastian schweinsteiger threaded through to the germany striker, who turned his marker superbly before slamming past morgan de sanctis. it only took another six minutes for gomez to double his and bayern's tally, peeling away and cushioning toni kroos' lofted diagonal pass into the net.
gomez had already flicked just wide by the time he completed his treble three minutes before the interval, turning in from close range when kroos' effort was spilled. napoli restored some hope at the end of the half as fernández headed in marek hamšík's free-kick, but it was going to take something special to reignite the contest after the restart.
a slight improvement was forthcoming, but even when bayern lost their midfield director schweinsteiger to a suspected broken collarbone, the hosts intelligently maintained possession. napoli were limited to the occasional strike from distance, and their fate looked sealed when juan zúñiga received two quick yellow cards with 20 minutes remaining.
holger badstuber's dismissal seven minutes later offered walter mazzarri's men a chance, and they almost grasped it as fernández headed in a second, bayern protected their lead through the nervy final stages which concluded when, with de sanctis up for a corner, gomez almost added a fourth from the halfway line; the scrambling goalkeeper cleared by the post.
heynckes' side can seal progress at home to eliminated villarreal cf on 22 november, when third-placed napoli host manchester city fc.