When, however, Joseph Ferdinand died of smallpox in February 1699, the issue re-opened. In 1700 William and Louis XIV agreed to the Second Partition Treaty (also called the Treaty of London), under which the territories in Italy would pass to a son of the King of France, and the other Spanish territories would be inherited by a son of the Holy Roman Emperor. This arrangement infuriated both the Spanish, who still sought to prevent the dissolution of their empire, and the Holy Roman Emperor, who regarded the Italian territories as much more useful than the other lands. Unexpectedly, Charles II of Spain interfered as he lay dying in late 1700. Unilaterally, he willed all Spanish territories to Philip, the Duke of Anjou, a grandson of Louis XIV. The French conveniently ignored the Second Partition Treaty and claimed the entire Spanish inheritance. Furthermore, Louis XIV alienated William III by recognising James Francis Edward Stuart, the son of the former King James II (who died in September 1701), as "de jure" King of England. The subsequent conflict, known as the War of the Spanish Succession, broke out in July 1701 and continued until 1713/1714.