The War of the Spanish Succession (1702 – 1713) was a European war; the North American portion of this war was Queen Anne's War. The war was fought over the European balance of power; the Spanish King Charles II had willed his kingdom to Philip V, a grandson of the French King Louis XIV. A coalition thus fought the war in order to prevent a merging of Spain and France. The war was concluded by the treaties of Utrecht (1713) and Rastatt (1714).