The Spanish branch of the House of Bourbon was founded by Philip V. He was born in 1683 in Versailles, the second son of the Grand Dauphin, son of Louis XIV. He was Duke of Anjou and probably never expected to be raised to a rank higher than that. However King Charles II of Spain, dying without issue, willed the throne to his grand-nephew the Duke of Anjou, younger grandson of his eldest sister Marie-Thérèse, daughter of King Philip IV of Spain who had married Louis XIV of France.