In the 18th century, there was doubt over who should become king of Spain; this doubt led many of the kings of Europe to fight to become king of Spain. This was called the War of the Spanish Succession.