Madrid captain Casillas was left out for the second consecutive game but was called upon after just five minutes following a penalty conceded by his replacement Adan Garrido who was red carded.
Xabi Prieto, who was to grab a hat-trick, scored from the spot-kick to equalise after Karim Benzema had put Madrid ahead in the second minute with Sami Khedira then restoring the lead for Jose Mourinho's side after 35 minutes.