 In 1217, her younger brother, Henry I, died and she succeeded him on the Castilian throne with Ferdinand as her heir, but she quickly surrendered it to her son.Alphonso of Leon considered himself tricked, and the young king had to begin his reign by a war against his father and a faction of the Castilian nobles.His and his mother's abilities proved too much for the king of Leon and his Castilian allies.