CSKA Moscow secured a superb 3-0 win away to the already-qualified Real Madrid in the Champions League on Wednesday but the Russian side were still piped to a Europa League spot by Viktoria Plzen.
Feder Chalov put CSKA in front against the Group G winners and triple Champions League holders with a curling shot in the 37th minute and Georgi Shchennikov doubled the visitors' advantage at the Santiago Bernabeu two minutes before halftime with a scrappy volley on the rebound.
Iceland international Arnor Sigurdsson struck a remarkable third goal for the Russians in the 73rd minute, completing an unlikely second victory for CSKA over Madrid in this Champions League campaign.
Fedor Chalov of CSKA Moskow and Alvaro Odriozola of Real Madrid battle for a ball during their UEFA Champions League match at the Santiago Bernabeu in Madrid, Spain, December 12, 2018. /VCG Photo
They also won 1-0 in the Russian capital in October when Julen Lopetegui was in charge of the Spaniards.
Moscow's only two wins in the competition this season have come against the 13-times winners and they finished bottom of the group on seven points due to their inferior head-to-head record against Plzen, who beat AS Roma 2-1.
Real, who were already guaranteed top spot, remained on 12 points while Roma, who had clinched second place in the group, ended on nine.
Young Boys beat Juventus
Two goals from striker Guillaume Hoarau led Young Boys to a shock 2-1 Champions League win over already-qualified Juventus after Ronaldo missed several chances for the Serie A side and Paulo Dybala had a stoppage-time goal disallowed.
Mattia De Sciglio of Juventus tries to control the ball during the Champions League match against Young Boys, Bern, Switzerland, December 12, 2018. /VCG Photo
Dybala, who had pulled Juventus back into the game with a goal in the 80th minute, thought he had equalized with a long-range shot, but it was chalked off for offside when Ronaldo leaped at the ball in front of goalkeeper Marco Woelfli but did not make contact.
Juventus finished top of Group H despite the defeat after Manchester United also lost to Valencia. The Swiss side finished bottom despite notching their first-ever win in the Champions League group stage.
Hoarau opened the scoring with a penalty on the half hour and struck again in the 68th minute in a match which will long be remembered by the Swiss club.
Ajax draw with Bayern
Striker Robert Lewandowski scored twice as Bayern Munich sealed top spot in Group E following a thrilling 3-3 Champions League draw at Ajax in which both sides ended with 10 men.
Ajax came from behind to lead through Dusan Tadic's double and looked set to claim top spot before a frenetic finale in which Bayern edged in front only for Nicolas Tagliafico to equalize for the hosts deep into stoppage time.
Lewandowski, who has now scored 21 goals in as many games in all competitions this season, grabbed an equalizer from the penalty-spot before Kingsley Coman struck what seemed an excellent late winner for the German side.
The hosts set up a thrilling finish when defender Tagliafico's effort ended up in the back of the Bayern net, but the visitors were able to see out the remaining seconds and go into the second round draw as one of the seeded sides.
Ajax's players and Bayern's ones argue in the goal after Ajax's third goal scored during their UEFA Champions League Group E football match at the Johan Cruyff Arena in Amsterdam, Netherlands, December 12, 2018. /VCG Photo
Both teams finished the pool unbeaten with Bayern on 14 points to Ajax's 12, while Benfica ended in third with seven points after they claimed a 1-0 home victory over AEK Athens thanks to Alex Grimaldo's late winner.
Bayern led 1-0 at halftime thanks to Lewandowski's 13th minute goal, but the game came to life in an extraordinary second period.
Ajax leveled through Tadic before both sides were reduced to 10 men in separate incidents, with the home side's Austrian defender Maximilian Wober given a straight red card for a wild lunge and Bayern's Thomas Muller following him seven minutes later for another dangerous tackle.
Ajax looked like they might snatch top spot in the pool when Tadic put them ahead via the penalty spot, but that lead lasted only four minutes as Lewandowski also converted from the spot.
Coman netted with a fine strike from just inside the box as the game went into stoppage time, but there was still time for a desperate Ajax to find an equalizer as they poured players forward and Tagliafico tapped home Klaas-Jan Huntelaar's cross.
For the other match of the group, Benfica beat AEK Athens 1-0 and went to Europa League, while the Greek side didn't get any victory in this Champions League journey.
Lyon qualified
Olympique Lyonnais earned the point they required to book their place in the Champions League last 16 but needed Nabil Fekir's equaliser 20 minutes into the second half to salvage a 1-1 draw away to Shakhtar Donetsk.
The French side fell behind to a goal from Junior Moraes midway through the first half and looked in danger of being overtaken in Group F by the Ukraine side and bowing out.
But Fekir's curled shot from just inside the box meant they drew for the fifth time in the group to finish as runners-up to Premier League champions Manchester City.
Donetsk's Brazilian midfielder Taison (L) and Bertrand Lyon's Burkinabe forward Bertrand Traore (R) vie for the ball during their UEFA Champions League at the NSK Olimpiyskyi stadium in Kiev, Ukrain, December 12, 2018. /VCG Photo
Lyon had never lost against Ukrainian opposition in five previous European encounters and came into the match in good form, having lost only twice in 17 matches so far this season.
They were the better team for most of the match but suffered some hair-raising moments in the final period of the game as Shakhtar threw everything forward in search of the goal that would have taken them through.
In the end, though, it was Shakhtar's inability to keep a clean sheet -- this was their eighth European match in a row where they conceded at least one goal -- that cost them dearly.
The result means Shakhtar finish in third place and go into the Europa League knockout stage. And Manchester City beat Hoffenheim 2-1 to let the German newly powerful club go back home.