Goals by Sadio Mane, Eric Maxim Choupo-Moting and Benjamin Pavard earned Bayern Munich a 3-0 win at already-eliminated Barcelona as the German giants clinched a spot in the Champions League round of 16 as group winners.
Bayern top Group C on 15 points, five ahead of Inter Milan who also reached the knockout stage after a 4-0 win at Viktoria Plzen earlier on Wednesday, a result that eliminated Barcelona in the group stage for the second year in a row.
With Barcelona having nothing riding on their game, it did not take long for Bayern to open the scoring through Mane 10 minutes into the first half after receiving a brilliant long pass from Serge Gnabry.
Mane beat Spanish defender Hector Bellerin in a 50-metre race and scored with a tidy finish.
Bayern doubled their lead in similar fashion 21 minutes later, catching the Barca defence sleeping and out of position.
Joshua Kimmich passed to Gnabry who, from the edge of the box, set up Choupo-Moting to score his sixth goal in the Champions League this season.
Barca thought they had a penalty after a clash between Dutch defender Matthijs de Ligt and Polish striker Robert Lewandowski but the referee, after a VAR check, ruled that there had been no foul.
Bayern took their foot off the gas after the break and had a Gnabry goal ruled out for offside in the 56th minute.
Pavard scored the third goal in the very last play of the game, with a close-range strike from a corner.
Barcelona looked stale and went the full 90 minutes without a single strike on target.
"We have to face our new reality, today we didn't even have the level to compete," Barca manager Xavi told Movistar Plus.
"I believe today the psychological side weighed on us, going into the game knowing that we were already out.
"We started the season with very high expectations but ended up in a very complicated group and didn't manage to be at the necessary level to compete with them. It's a huge disappointment."
Since winning the Champions League title for the last time in 2015, Barca have reached the semi-finals only once, in 2019. They lost 8-2 to Bayern in the 2020 quarter-finals, were knocked out in the round of 16 by PSG in 2021, and failed to make it past the group stage in the last two editions.
Last year, Barca's exit at the group stage came after the departure of Lionel Messi to Paris Saint-Germain and the financial crisis that led to the resignation of the entire club board.
This season, however, following the big-money signings of Lewandowski, Raphinha and Jules Kounde, a better outcome had been expected.
They have won only one of their five games in the group so far and will go into the second-tier Europa League after ending up third in the group for the second year in a row.

Inter Milan had made sure of progression ahead of Barcelona after an Edin Dzeko double helped fire them to a 4-0 home win over Viktoria Plzen earlier on Wednesday.
A lively opening yielded early chances for Inter but they were thwarted by Plzen goalkeeper Jindrich Stanek who pulled off a superb double save in the 25th minute before Henrikh Mkhitaryan put the hosts ahead 10 minutes later.
The former AS Roma midfielder turned in Alessandro Bastoni's looping cross and veteran Dzeko then put Inter in total command when he tapped home after Federico Dimarco had latched on to Nicolo Barella's excellent crossfield pass.
Plzen, winless in this year's competition, offered little offensive threat and were sliced open again in the 66th minute as Dzeko added to his tally when he swept in Lautaro Martinez's pass inside the area.
Romelu Lukaku marked his long-awaited return from injury with a goal as he completed the rout after slotting past Stanek following a perfectly weighted through ball from Joaquin Correa.
Atletico Madrid missed a stoppage-time penalty in a 2-2 draw at home to Bayer Leverkusen on Wednesday which ended their hopes of reaching the knockout stage.
Atletico spurned the chance to win the match when Leverkusen goalkeeper Lukas Hradecky saved Yannick Carrasco's spot kick before Saul Niguez's follow up strike hit the crossbar.
The result ensured Porto go into next February's knockout stage, with the Portuguese side on nine points in Group B after a 4-0 win at leaders Club Brugge, already guaranteed a top-two finish on 10 points, earlier on Wednesday.
Atletico, without a win and goalless in their previous three Champions League outings, exit the competition at the group stage for only the second time in the past 10 years.
Eintracht Frankfurt muscled their way past Olympique Marseille 2-1 to leave Group D wide open and boost their chances of advancing on the final matchday next week.
The win lifted the reigning Europa League champions to seven points, one ahead of Marseille and level with second-placed Sporting. Tottenham are top on eight after drawing 1-1 against the Portuguese side.
In a fiery start, Frankfurt's Daichi Kamada completed a superb passing move to put the hosts in front after three minutes with their first goal in a home game in the competition this season.
They should have added at least one more in a strong first half but Mario Goetze, making his 50th start in the competition, headed wide a little later while Christopher Lenz's effort was blocked by keeper Pau Lopez.
Marseille drew level with a Matteo Guendouzi close-range volley in the 22nd but their joy lasted only five minutes.
The France international turned from hero to villain, losing possession and Goetze, whose performances this season have made him a candidate for Germany's World Cup squad, played a perfect one-two with Randal Kolo Muani who slotted in the winner.