Philip of Habsburg (22 July 1478 – 25 September 1506), called the Handsome or the Fair, was Duke of Burgundy from 1482 to 1506 and the first member of the house of Habsburg to be King of Castile as Philip I. The son of Holy Roman Emperor Maximilian I by his first wife Mary of Burgundy, Philip was less than four years old when his mother died, and upon her death, he inherited the greater part of the Duchy of Burgundy and the Burgundian Netherlands as Philip IV. In 1496, his father arranged for him to marry Joanna of Castile, second daughter of Ferdinand and Isabella, rulers of Aragon and Castile respectively. Around the same time, Philip's sister Margaret was given in marriage to Joanna's brother Juan, as part of an agreement between their fathers. Within four years after the wedding, Joanna became heir presumptive to Aragon and Castile, following the deaths of her brother, elder sister and infant nephew during that period. In 1504, aged 26, Philip became king of Castile jure uxoris.