 Charles' will named the 16-year-old Philip, the grandson of Charles' sister Maria Theresa of Spain and King Louis XIV of France, as his successor to the whole Spanish Empire.Upon any possible refusal of the undivided Spanish possessions, the Crown of Spain would be offered next to Philip's younger brother Charles, duc de Berry, or, next, to Archduke Charles of Austria.Archduke Charles of Austria had a legal right to the Spanish throne due to the fact that Charles's father, Leopold I, Holy Roman Emperor, was the son of Charles' aunt Maria Anna of Austria, but Philip still had the better claim because Philip's grandfather, King Louis XIV of France, was the son of Charles' aunt Anne of Austria, the older of the sisters of Philip IV.