Philip of Habsburg (ruled 1482-1506) , heir to diminished Burgundy and to Austria, and potential Holy Roman Emperor, made a brilliant marriage. He married Joan of Aragon, heiress to the Kingdoms of Aragon, Naples, Sicily, Sardinia and Castile. The marriage of her parents had united Spain. The death of Joan's mother made Philip and Joan titular King and Queen of Castile, while Joan's father actually ruled the Kingdoms. Their son Charles would inherit the Burgundian lands in Franche Comte and in the Netherlands, he would also inherit Austria (later given to his brother Ferdinand) and Spain, with some Italian Kingdoms attached and the vast riches of America, recently conquered by Spanish conquistadores. Charles would also be elected Holy Roman Emperor upon the death of his grandfather Maximilian in 1515.