BARCELONA, Spain -- Cristiano Ronaldo scored deep in injury time to cap Real Madrid's incredible 3-2 comeback win at Levante on Saturday, keeping his team in touch with the top of the Spanish league.

With the game poised at 1-1, Levante's Nabil El Zhar grabbed what looked to be the winner in the 86th, but Madrid substitute Alvaro Morata levelled in the 90th.

Still facing what would have been a costly draw, Ronaldo's last-gasp strike hit both a defender and the post before settling into the net to crush the hosts' hopes of taking a point.

The victory put Madrid back in third place, two points behind Barcelona and Atletico Madrid before they both play this round.

After Levante striker Babacar "Baba" Diawara opened the scoring in the 57th, Sergio Ramos equalized four minutes later.