Real Madrid recorded a comfortable 2-0 win over Borussia Monchengladbach to qualify for the Uefa Champions League last 16.
The most successful team in the competition needed a win to avoid an embarrassing first round exit.
Karim Benzema rose up to the occasion to score a brace which sent them through to the next stage of the competition as a group winner.
Inter Milan crashed out of the Uefa Champions League in the first round for the third consecutive year after playing out a 0-0 draw against Shaktar Donetsk to finish bottom of the group.
Shaktar Donetsk finished third in Group B to seal a place in the Europa League round of 32.
Atletico Madrid recorded a 2-0 win over Red Bull Salzburg in Austria to finish second behind Bayern Munich.
Yannick Carrasco and Mario Hermoso were the goalscorers for the visitors.
Bayern Munich defeated Locomotive Moscow 2-0 to end the group stage unbeaten.
Atalanta earned a late 1-0 win over Ajax to finish behind Liverpool in Group D.
Luis Muriel scored a late winner for Atalanta to send Ajax into Europa League round of 32.
Liverpool and Midtjylland played out a 1-1 draw in Denmark.
Salah was on target for Liverpool to become the clubs top scorer in the history of the competition with 22 goals.
Neymar scored a hat-trick as PSG spank Basaksehir 5-1 to seal top spot in Group H.
Mbappe scored a brace to complete the rout Mehmet Topal scored a consolation goal for Basaksehir.
Manchester City beat Marseille 3-0 thanks to goals from Ferran Torres, Sergio Aguero and own goal by Marseille’s Alvaro Gonzalez.
Porto beat Olympiakos 2-0 to finish second behind Man City.
The draws for the Uefa Champions League round of 16 will be held on Monday.