War of the Spanish Succession, (1701–14), conflict that arose out of the disputed succession to the throne of Spain following the death of the childless Charles II, the last of the Spanish Habsburgs. In an effort to regulate the impending succession, to which there were three principal claimants, England, the Dutch Republic, and France had in October 1698 signed the First Treaty of Partition, agreeing that on the death of Charles II, Prince Joseph Ferdinand, son of the elector of Bavaria, should inherit Spain, the Spanish Netherlands, and the Spanish colonies. Spain’s Italian dependencies would be detached and partitioned between Austria (to be awarded the Duchy of Milan) and France (Naples and Sicily). In February 1699, however, Joseph Ferdinand died. A second treaty, signed on June 11, 1699, by England and France and in March 1700 by the Dutch Republic, awarded Spain and the Spanish Netherlands and colonies to Archduke Charles, second son of the Holy Roman emperor Leopold I, and Naples, Sicily, and other Spanish territories in Italy to France. Leopold, however, refused to sign the treaty, demanding that Charles receive all the Spanish territories intact. The Spanish grandees likewise did not recognize it, being unalterably opposed to partition. Charles II allowed himself to be convinced that only the House of Bourbon had the power to keep the Spanish possessions intact, and in the autumn of 1700 he made a will bequeathing them to Philip, duc d’Anjou, grandson of Louis XIV of France.