Soccer: Real Madrid extend perfect home record
Ronaldo put Real ahead in the final minute of the first half but Deportivo hit back in the 63rd minute when Walter Pandiani scored within 15 seconds of coming on as a substitute.
Real, needing to win to stay clear of Valencia at the top, got the winner five minutes from time when Raul turned in a cross from Roberto Carlos.