A lifeguard rescued a toddler clinging to her 40-year-old father's corpse after he suffered a heart attack while swimming in the Atlantic, the Civil Guard said.

The rescue took place Wednesday at a beach in the town of La Antilla in the southern province of Huelva.The 3-year-old girl, identified as Gloria Samaniego, was found floating about 100 yards offshore.

"She was lying on top of her father's body," a Civil Guard official said.

She was hospitalized in the provincial capital. Officials there refused to discuss her condition.