Real Madrid secured the first spot in group A of the Champions League as they beat Shakhtar Donetsk 3-4 in Ukraine.
Rafa Benitez men played fine during the first hour and took a 0-4 lead, but they were close to spoiling their good work in the last twelve minutes, when the hosts neared the come-back with three late goals.
Los Blancos took the lead before the 20-minute mark as Ronaldo nodded home from close range after Bale had beaten the goalkeeper to a through pass.
There were very few chances in the first half, but the second would see six more goals. Real made it 0-2 after five minutes as Casemiro sent Ronaldo away with a super pass and the attacker cut inside before finding Modric, who found the back of the net.
The visitors seemed to have sealed the victory when Carvajal received a pass from Ronaldo and sent one over the head of Pyatov and found the back of net.
Los Blancos had their fourth as Bale raced away down the left and squared into Ronaldo, who converted at the second time of asking after his initial effort was blocked by the goalkeeper.
With 12 minutes to go, it all seemed quite easy for Real, but things would get complicated.
In just five minutes, Shakhtar shorten the lead thanks to goals from Teixeira and Dentinho. The striker converted a penalty shot after Casemiro brought down Taison inside the box. Dentinho took advantage of some poor defending by real and chestted home at the far post after a corner kick.
Five minutes later, the Ukranians shortened the lead down to one goal, as Teixeira settled inside a crowded box and calmly slotted one into the bottom corner.
Yet, there was not enough time to complete the come-back, and Rafa Benitez men brought the three points home and secured the first spot in the group.