 Ferdinand had other royal ancestors from his paternal grandmother Urraca of Portugal and his maternal grandmother Eleanor of England a daughter of Henry II of England and Eleanor of Aquitaine.From his birth to 1204 Ferdinand was designated heir to his father's kingdom of Leon with the support of his mother and the kingdom of Castile despite the fact that he was Alfonso IX's second son.Alfonso IX already had a son and two daughters from his first, dissolved marriage to Teresa of Portugal but at the time he never acknowledged his first son (also named Ferdinand) as his heir.