Real Madrid defender Pepe was cleared to leave the hospital on Monday after he spent the night under observation because of a head injury suffered in his team's 1-1 draw with Valencia on Sunday.

Pepe sustained the injury when he clashed heads with teammate Iker Casillas in the first half of the contest and had to be replaced at halftime before being taken to the hospital.

"He has spent the night under observation and everything is fine and we've decided, under the control of the Real Madrid medical team, that the player can be discharged from hospital without any problem," doctor Carlos Diez told Real Madrid's website.

It is still unclear whether or not the Portugal international will miss time while he recovers, with Real Madrid set to face Barcelona on Thursday in the first leg of the Spanish Supercopa.