Question: The queen of Castile, Joanna of Castile, married this member of the house of Habsburg who was the son of which monarch?

<P0-S0> Guillén Pérez de Guzmán (ca. <P0-S1>  1180 –1233), a member of the House of Guzmán, one of the most aristocratic of the Kingdom of Castile, was the maternal grandfather of Queen Beatrice of Castile, Queen Consort of Portugal as the wife of King Alfonso III. <P0-S2>  His father was Pedro Rodríguez de Guzmán—killed in the Battle of Alarcos on July 18, 1195 and son of Rodrigo Muñoz de Guzmán—and Mahalda With his brothers Nuño and Theobald, he fought alongside King Alfonso VIII at the decisive Battle of Navas de Tolosa in 1212. <P0-S3>  Even though his kinsmen supported the Laras during the crisis that ensued after the death of King Alfonso VIII, Guillén, probably because of his marriage to a member of the Girón clan, supported Queen Berengaria of Castile and her son, the future king Ferdinand III. <SEP> <P1-S0>  The son of Holy Roman Emperor Maximilian I, at the age of three Philip inherited the greater part of the Duchy of Burgundy and the Burgundian Netherlands (as Philip IV) from his mother, Mary, and at 27 briefly succeeded to the Crown of Castile as the husband of Queen Joanna, who was also heir presumptive to the Crown of Aragon. <P1-S1> Philip I (22 July 1478 – 25 September 1506) called the Handsome or the Fair, was the first member of the house of Habsburg to be King of Castile. <P1-S2>  He was the first Habsburg monarch in Spain. <P1-S3>  He never inherited his father's territories or became Holy Roman Emperor because he predeceased his father, but his son Emperor Charles V eventually united the Habsburg, Burgundian, Castilian, and Aragonese inheritances. <SEP> <P2-S0> Álvaro Núñez de Lara ( 1170 – 1218) was a Castilian nobleman who played a key role, along with other members of the House of Lara, in the political and military affairs of the Kingdoms of León and Castile around the turn of the 13th century. <P2-S1>  He was made a count in 1214, served as "alférez" to King Alfonso VIII of Castile, was the regent during the minority of King Henry I of Castile, and was "mayordomo" (steward) to King Alfonso IX of León. <P2-S2>  He opposed Queen Berengaria of Castile and her son King Ferdinand III and supported the King of León during the war between the two countries of 1217–1218. <P2-S3>  At the end of his life he was a knight of the Order of Santiago, in whose Monastery of Uclés he was buried. <SEP> <P3-S0>  From the union of these two crowns modern Spain evolved. <P3-S1>  Joanna married Philip the Handsome on 20 October 1496. <P3-S2>  Philip was crowned King of Castile in 1506, initiating the rule of the Habsburgs in Spain. <P3-S3> Joanna (6 November 1479 – 12 April 1555), called the Mad (Spanish: "Juana la Loca" ), was queen of Castile from 1504 and of Aragon from 1516. <P3-S4>  After Philip's death that same year, Joanna was deemed mentally ill and was confined to a nunnery for the rest of her life. <P3-S5>  Though she remained the legal queen of Castile throughout this time, her father, Ferdinand II of Aragon, was regent until his death, when she inherited his kingdom as well. <P3-S6>  From 1516, her son, Charles I, ruled as king, while she nominally remained co-monarch.