Alves was dismissed for a second booking in the 62nd minute after body checking Jose Callejon, but Espanyol could not take advantage of having an extra man.
Ronaldo, the world's most expensive player, then set up substitute Jose Callejon to complete the home scoring as Real secured their second 4-1 win of the season over Atletico.