Charles II of Spain was succeeded by Philip V of the house of Bourbon, whose claim was supported by his grandfather, King Louis XIV of France. With Philip being in line of succession for the French throne, a war began, as the union of France and Spain under one monarch would have upset the balance of power in Europe. The War of the Spanish Succession (1701-1714) resulted in Philip V remaining on the throne of Spain, but renouncing his place in the French line of succession, thereby precluding the union of the French and Spanish crowns. He also gave Naples to Charles VI, who was Holy Roman Emperor and Archduke of Austria.