Cristiano Ronaldo scored twice and created two more goals as he and Luka Modrić helped Real Madrid to an impressive victory at Shakhtar Donetsk.
The 4-3 win wrapped up top spot in Group A of the Champions League.
The pair were two of only three survivors from Saturday's 4-0 defeat at home to Barcelona, and their hunger was evident throughout. Modrić laid on the opener for Ronaldo on 18 minutes, and the Portuguese returned the favour at the start of the second half.
Madrid looked to have the points in the bag with ten minutes left after further efforts from Dani Carvajal and Ronaldo, only for a remarkable Shakhtar fightback. Alex Teixera pulled one back from the spot, then Dentino another before Alex Teixera's second set up a frenetic finale.