Real fell behind in the first leg of their semi-final clash as right-back Joshua Kimmich put the hosts ahead, but fellow full-back Marcelo levelled the scores with a sublime half volley.
A second half of few chances followed, but it is Real who will take a lead back to the Bernabeu next week after substitute Marco Asensio came off the bench to rifle home the winner.
That strike did not just seal an away with for Real Madrid, but also the 99thChampions League victory of Ronaldos career – the most of any player in European Cup history.
The five-time Ballon dOr winner had previously held the record with former Los Blancos goalkeeper Iker Casillas, though has now eclipsed his old teammate.
Ronaldos appearance was also the 11th time he has appeared in the semi-final of Europes premier club competition, with no other player making the last four more than nine times.
It was not the perfect night for CR7, though, with the 33-year-old failing to score in a Champions League game for the first time this season, bringing to an end his 11-game streak.
The 2017/18 Champions League campaign could see Ronaldo break even more records, though, with the Portuguese currently on 15 goals – he needs just two more to equal his own record haul of 17 which he recorded four years ago.
Although Ronaldo took Casillas win record, he still has a way to go to make more appearances than the Spanish goalkeeper, who has turned out 167 times in the Champions League to Ronaldos 151.
More: Real Madrid