Juventus qualified for the Champions' League quarter-finals despite winning only their first match of the tournament - a 2-0 victory over Norwegian side Rosenborg.
Filippo Inzaghi and Nicola Amoruso scored first-half goals in Turin to ensure that Juventus, who had drawn all their previous matches, scraped to the top of Group B.
With Galatasaray losing 1-0 at Athletic Bilbao, the three points ensured the Italians qualified - with Manchester United also benefiting as they qualified as one of the best runners-up after their 1-1 draw with Bayern Munich.
Juventus, Rosenborg and Galatasaray all finished on eight points but the Serie A giants, finalists for the last three years, advance because they had the best record in head-to-head games between the three clubs.
Inter Milan, the other Italian side in the competition, also qualified. Goals from Argentinian defender Javier Zanetti and Roberto Baggio gave Inter a 2-0 victory over Sturm Graz to assure them of winning Group C ahead of holders Real Madrid, who also qualified with a 2-1 win over Spartak Moscow.
Striker Raul Gonzalez scored for the Spaniards in the 34th minute, heading in a corner from Brazilian defender Roberto Carlos.
Another header, this time by Savio Bartolini in the 65th minute, secured victory with the Russians grabbing an 89th-minute consolation through Dmitri Khlestov.
Former Manchester City striker Uwe Rosler scored a superb hat-trick as Kaiserslautern, already sure of a place in the quarterfinals, cruised past HJK Helsinki 5-2.
Dynamo Kiev qualified as top of Group E - Arsenal's group - courtesy of a 3-1 win at French champions Lens.
After a goal-less first-half Kiev took command with goals midway through the second period from Kakha Kaladze and Vladyslav Vashchuk and even though Vladimir Smicer reduced the deficit, Andrei Shevchenko wrapped up the win with five minutes to go.
Lens were forced to field a makeshift side with striker Wagneau Eloi drafted in for suspended French international striker Tony Vairelles, while key defenders Cyril Rool and Eric Sykora were also suspended.
In Group A, Greek side Olympiakos managed a 1-1 draw at Croatia Zagreb to see themselves through to the last eight. Josko Jelicic opened the scoring for Zagreb after 35 minutes but Stylianos Giannakopoulos hit a second-half equaliser.
For Juventus, it was a sensational finish to their lacklustre campaign so far, albeit witnessed by a paltry crowd of well under 10,000 in a near-empty stadium.
The victory also confounded critics who claimed that the team's poor form recently in the Serie A and the expected departure of coach Marcello Lippi at the end of the season had completely undermined the team.
Goalkeeper Angelo Peruzzi made some crucial saves but Juventus deserved their win.