The War of the Spanish Succession was fought from 1701 to 1714 over who had the right to be the next king of Spain after Charles II had died childless. France wanted the new king to be Philip of Anjou, a relative of its own king. Great Britain, the Dutch Republic and other states in Europe opposed that because they wanted to prevent France from becoming more powerful.