Karim Benzema scored a brace to help Real Madrid book a place in the Champions League knockout stages with victory over Borussia Monchengladbach.
Inter Milan and Shakhtar Donetsk drew 0-0. Both sides needed a win to qualify but they go out with the San Siro draw.
Real started the day in third place and in major danger of their first ever group-stage elimination.
Benzema’s goals from Lucas Vazquez and Rodrygo crosses put Real in control.
They never looked back against an underwhelming Gladbach, who only had one shot on target.
Real should have won by more with Luka Modric having a goal disallowed and Benzema and Vazquez hitting the woodwork.
Real have reached the knockout rounds in all 25 of their Champions League campaigns and every season since 1996-97, when they did not qualify for Europe.