In 1217 , her younger brother , Henry I , died .
She succeeded him on the Castilian throne with Ferdinand as her heir , but she quickly surrendered it to her son .
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 .