Cristiano Ronaldo scored twice for Real Madrid to beat Bayern Munich 2-1 in the first leg of their Champions League quarter-final yesterday, ending the German side's tournament record of 16 straight wins at home.

Ronaldo's second-half goals saw him become the first player to score 100 goals in European club competition. The Portuguese star ensured Madrid came from behind after Arturo Vidal's 25th-minute header for Bayern to put the defending champions on course to reach the semi-finals for a seventh successive year. The second leg takes place in Madrid on Tuesday.

"We are still alive," said Bayern coach Carlo Ancelotti after losing to his former side.

Bayern was without club top-scorer Robert Lewandowski after he failed to recover from a knock to his right shoulder. But they have not been beaten at home in the competition since April 2014, when it lost 4-0 to Ancelotti's Madrid in the semi-finals. Madrid went on to win the title.

Ancelotti's successor at Madrid, Zinedine Zidane, is bidding to become the first coach to lead a side to back-to-back titles in the Champions League era.

"We suffered here but all-in-all it's not easy to play here. They have a great team and great players," Zidane said. "We needed patience to decide the match. I think it's a good result for us. The key was patience."