Real Madrid ended their Champions League Group A campaign with a routine 3-1 win over Club Brugge at the Jan Breydel Stadium.
Zinedine Zidane's side had already secured their last-16 berth before the clash in Belgium and can now turn their attention to the draw for the knockout stages, which takes place on Monday.
Hans Vanaken cancelled out Rodrygo Goes' opener within the space of two second-half minutes, but a first Champions League goal for Vinicius Junior and a sublime strike from Luka Modric sealed all three points for the LaLiga giants.
Galatasaray's defeat to Paris Saint-Germain in the French capital, meanwhile, means Brugge finish third in the group and will now compete in the knockout stages of the Europa League in 2020.
Both goalkeepers were forced into excellent saves inside the opening 15 minutes; Alphonse Areola used his legs to keep out Percy Tau's close-range effort, while Simon Mignolet pawed over Luka Jovic's drive that capped a flowing move.
Isco came agonisingly close to opening the scoring shortly after the half-hour mark, the Spain international dragging wide of Mignolet's right-hand post from 18 yards.
The game then burst into life shortly after the interval, with two goals in as many minutes.
After a marauding run down the right-hand side, Alvaro Odriozola picked out Rodrygo and the Brazilian steered in a superb left-footed volley off an upright to put the visitors ahead.
That was cancelled out just 101 seconds later, however, when Vanaken collected Dennis' pass and whipped the ball past Areola from 15 yards.
Madrid restored their lead after 64 minutes when Vinicius slotted home from close range after Rodrygo had failed to get a shot away inside a crowded penalty area.
Modric then added a touch of gloss to the final scoreline with a sumptuous finish in stoppage time, the Croatian curling his effort past Mignolet from a central position just outside the penalty area.
What does it mean? Madrid through but improvement required
It has been far from a stellar campaign so far in this season's Champions League from Madrid, with just three wins from their six group games.
Zidane will know his side needs to improve dramatically if they are to go deep into the latter stages of a competition they won three times between 2016 and 2018.
Rodrygo at home on the big stage
The 18-year-old announced his arrival in European football's premier club competition with a hat-trick against Galatasaray and again showed why he is so highly rated. He took his goal superbly and was in the thick of the action throughout.
Jovic fails to deliver again
The former Eintracht Frankfurt striker has struggled since his move to the Spanish capital, scoring just one goal across all competitions. He came close to adding to his tally in the first half, but offered little else before he was substituted for Karim Benzema in the second half.
Zidane takes his side to Valencia in LaLiga on Sunday before a huge Clasico clash with Barcelona at Camp Nou. Brugge also return to domestic action on Sunday, taking on Mechelen at home.