Chelsea loanee Nathaniel Chalobah was among the scorers as Napoli advanced from their Europa League group with a 100 percent record following a 5-2 win over Legia Warsaw.
England Under-21 international Chalobah, who is yet to play a senior game for Jose Mourinho's Blues, broke the deadlock in Naples before Lorenzo Insigne, Jose Callejon and Dries Mertens, who scored twice, got in on the act to make it six wins from six for the Italians. They are the only club to progress without a dropping a point and they did so with a goal difference of plus 19 despite conceding goals to Stojan Vranjes and Aleksandar Prijovic.
Their qualification had already been sealed prior to kickoff and FC Midtjylland joined them in advancing out of Group D thanks to a 1-1 draw with Club Brugge, for whom ex-Middlesbrough and Burnley forward Jelle Vossen scored.
Jurgen Klopp's Liverpool rounded off their Group B campaign with their unbeaten record intact, although they drew their fourth game out of six in a goalless stalemate with Sion.
That was enough to see the Swiss through too as Bordeaux and Rubin Kazan were knocked out having drawn 2-2 with each other. Scottish Premiership champions Celtic bowed out without winning any of their half-a-dozen Group A fixtures.
The Bhoys were already assured of bottom spot ahead of their trip to Fenerbahce and there was no consolation victory in Turkey as Liverpool loanee Lazar Markovic scored for the hosts, capitalising on Craig Gordon's error, before Kris Commons levelled after Diego was sent off.
It finished 1-1 in the other group's game between Ajax and Molde too, a result that was good enough for the visitors to finish top ahead of Fener.
Bruno Soriano's stoppage-time equalizer ensured Villarreal finished top of Group E after a 3-3 draw with Viktoria Plzen, who had gone ahead in the 90th minute through Tomas Horava at the Doosan Arena.
That robbed Rapid Vienna, who had already qualified, of top spot despite their 2-1 success over Dinamo Minsk.
Klopp's old club Borussia Dortmund could only go through as runner-ups after a 1-0 home loss to PAOK Salonika, while Krasnodar's 3-0 success at Gabala saw them finish at the summit.
In Group F Marseille's 4-2 win over Slovan Liberec saw them come second behind Sporting Braga, who were held to a 0-0 draw at Groningen.