Cristiano Ronaldo was sent off for lashing out at Edimar as Real Madrid beat Cordoba 2-1 thanks to a dramatic late Gareth Bale penalty.
Cordoba took an early lead when Bebe fired a shot from distance against the arms of Sergio Ramos, and the referee awarded a penalty. Nabil Ghilas calmly converted from the spot.
Real struggled to create many chances in response, but Karim Benzema equalised after stabbing home Gareth Bale’s flick-on from a James Rodriguez corner.
In the second half, Cordoba continued to play brightly, despite gradually dropping deeper, and they almost took the lead against when Florin Andone lifted a volley over the head of Iker Casillas, only to see his effort bounce off the crossbar.
Real Madrid went close when Juan Carlos saved Benzema’s shot from the left, but minutes later Cristiano Ronaldo saw red for kicking out at Edimar after the two tussled for a cross, and also became involved with Jose Angel Crespo.
Minutes later, Bale won a penalty when Federico Cartabia was given a second yellow after he handballed his free kick. He fired his shot down the middle to win the game with minutes to spare.