Already qualified Manchester City suffered their first defeat in all competitions this season following their 2-1 away defeat to Shakhtar Donetsk in Group F of the UEFA Champions League on Wednesday.
Two first half goals from Bernard and Ismaily in the 26th and 32nd minutes put Shakhtar in the driving seat.
In the 90th minute Sergio Aguero scored a consolation goal from the penalty spot to end the game 2-1.
The win ensured Shakhtar finish second on 12 points, three adrift of City.
In Group E, Liverpool secured first place as they thrashed Spartak Moscow 7-0 at Anfield.
A hat-trick from Philippe Coutinho (penalty 4th, 15th, 50th minutes), a brace from Sadio Mane (47th, 76th minutes) and a goal each from Emre Can (sixth minute) and Mohamed Salah (86th minute) completed the rout for Liverpool.
Egypt forward is the top scoring Premier League player in all competitions this season with 18 goals.
The second position in Group E went to Sevilla thanks to their 1-1 away draw against Maribor.
Holders Real Madrid edged Borussia Dortmund to a 3-2 win at the Santiago Bernabeu in Group H.
Madrid raced to a 2-0 lead with goals from Borja Mayoral and Cristiano Ronaldo in the eighth and 12th minutes respectively.
Ronaldo’s goal meant he became the first player in Champions League history to score in all six group stage matches in one season.
Dortmund were back on level terms through Pierre-Emerick Aubameyang’s brace on 43 and 49 minutes.
But it was Madrid that had the last laugh with Lucas Vazquez netting the winning goal on 81 minutes.
Still in Group H, Tottenham Hotspur thrashed Apoel Nicosia 3-0 and maintained top spot on 16 points, three points ahead of Madrid.
Fernando Llorente (20th minute), Heung-Min Son (37th minute) and Georges N’koudou (80th minute) all scored for Spurs.
And in Group G, FC Porto joined leaders Besiktas into the next round following their 5-2 home win against AS Monaco.
Maribor drew 1-1 at home to Sevilla, Leipzig lost 2-1 to visiting Besiktas and Feyenoord beat Napoli 2-1.
Liverpool 7 vs 0 Spartak Moscow
Shakhtar Donetsk 2 vs 1 Man City
Real Madrid 3 vs 2 Dortmund
Spurs 3 vs 0 Apoel Nicosia
Maribor 1 vs 1 Sevilla
Feyenoord 2 vs 1 Napoli
Porto 5 vs 2 AS Monaco
Leipzig 1 vs 2 Besiktas