Match ends, Shakhtar Donetsk 3, Real Madrid 4.
Real Madrid survived a stunning fightback by Shakhtar Donetsk to edge victory and finish top of Group A in the Champions League.
Cristiano Ronaldo's two goals, Luka Modric's powerful drive and Dani Carvajal's neat finish put Real in control with 15 minutes to go.
However, Alex Teixeira pulled one back from the penalty spot for Shakhtar, before Dentinho headed in a second.
Teixeira's low finish set up a tense finish, but Real held on.
The goals were the first Rafael Benitez's side had conceded in this season's Champions League and took the shine off what had looked like being a good response to the 4-0 defeat by Barcelona at the weekend.
Bale makes the cut and sets up two
Gareth Bale was one of only four players who remained from the team that lost El Clasico, along with Ronaldo, Raphael Varane and Modric.
The Wales international rewarded Benitez's faith in him with an impressive performance, setting up both of Ronaldo's goals.
Both assists came as a result of good persistence. Bale first got to a ball on the left ahead of Shakhtar's goalkeeper to cross for Ronaldo to head home, before later capitalising on an error to race away and square a pass for his Portuguese team-mate to finish at the second attempt.
Who's through to the last 16?
Nine teams are through to the last 16, with 13 clubs still in contention for the seven remaining places going into the final round of the group stage.
Group A: Real Madrid progress as group winners, with Paris St-Germain taking second place.
Group B: No-one is definitely through, with Wolfsburg, Manchester United and PSV Eindhoven fighting it out for the two places.
Group C: Atletico Madrid and Benfica are assured of their place in the last 16, with just first place to be decided.
Group D: Juventus and Manchester City are both into the last 16. Top spot is still to be decided.
Group E: Barcelona progress as group winners with one of Roma, Bayer Leverkusen and BATE Borisov hoping to join them in the knockout stage.
Group F: Bayern Munich are assured of top spot and either Olympiakos or Arsenal will join them.
Group G: Two from Chelsea, Porto and Dynamo Kiev will progress to the last 16.
Group H: Zenit St-Petersburg are through as group winners and one of Gent or Valencia will join them.
- 66de AzevedoSubstituted forDentinhoat 64'minutes
- 6StepanenkoBooked at 35mins
- 11MarlosSubstituted forTaisonat 62'minutes
- 21GladkiySubstituted forFerreyraat 74'minutes
- 22Alves da Silva
- 15CarvajalBooked at 48mins
- 2VaraneSubstituted forDaniloat 33'minutesBooked at 87mins
- 19ModricSubstituted forKroosat 62'minutes
- 7Cristiano Ronaldo
- 11BaleSubstituted forBenzemaat 71'minutes
- 20Rodríguez Ruiz
- Bas Nijhuis
- Shots on Target
Second Half ends, Shakhtar Donetsk 3, Real Madrid 4.
Daniel Carvajal (Real Madrid) wins a free kick in the defensive half.
Foul by Alex Teixeira (Shakhtar Donetsk).
Goal! Shakhtar Donetsk 3, Real Madrid 4. Alex Teixeira (Shakhtar Donetsk) right footed shot from the centre of the box to the bottom right corner. Assisted by Taison.
Danilo (Real Madrid) is shown the yellow card for a bad foul.
Foul by Danilo (Real Madrid).
Vasili Kobin (Shakhtar Donetsk) wins a free kick on the right wing.
Foul by Cristiano Ronaldo (Real Madrid).
Ivan Ordets (Shakhtar Donetsk) wins a free kick in the defensive half.
Goal! Shakhtar Donetsk 2, Real Madrid 4. Dentinho (Shakhtar Donetsk) with an attempt from the right side of the six yard box to the bottom right corner. Assisted by Taras Stepanenko with a headed pass following a corner.
Corner, Shakhtar Donetsk. Conceded by Daniel Carvajal.
Foul by Karim Benzema (Real Madrid).
Taras Stepanenko (Shakhtar Donetsk) wins a free kick on the left wing.
Goal! Shakhtar Donetsk 1, Real Madrid 4. Alex Teixeira (Shakhtar Donetsk) converts the penalty with a right footed shot to the bottom left corner.
Penalty conceded by Casemiro (Real Madrid) after a foul in the penalty area.
Penalty Shakhtar Donetsk. Taison draws a foul in the penalty area.
Isco (Real Madrid) wins a free kick in the attacking half.
Foul by Yaroslav Rakitskiy (Shakhtar Donetsk).
Foul by Daniel Carvajal (Real Madrid).