The War of the Spanish Succession (1701-1714) was fought over a possible unification of the Kingdoms of Spain and France under a single Bourbon monarch. It resulted in Philip V remaining King of Spain but being removed from the French line of succession to prevent the unification. Spain lost most of its European territories. Under Philip V and later kings such as Charles III, Spain underwent reforms and centralization of government while struggling with the loss of its empire to other European powers like Britain.