hostilities appeared inevitable. Partition treaties Unlike the crowns of France or Austria, that of Spain could be inherited through the female line. This allowed Charles' sisters Maria Theresa (1638–1683) and Margaret Theresa (1651–1673) to pass their rights onto the children of their respective marriages with Louis XIV and Emperor Leopold. Louis sought to avoid conflict over the issue through direct negotiation with his main opponent William III of England, while excluding the Spanish. Maria Antonia (1669–1692), daughter of Leopold and Margaret, married Maximillian Emanuel of Bavaria in 1685, and on 28 October 1692, they had a son, Joseph Ferdinand. Under the October 1698 Treaty of the Hague between France, Britain and the Dutch Republic, five-year old Joseph was designated heir to Charles II; in return, France and Austria would receive parts of Spain's European territories. Charles refused to accept this; on 14 November 1698, he published a will leaving an undivided Spanish monarchy to Joseph Ferdinand. However, the latter's death from smallpox in February 1699 undid these arrangements. In 1685, Maria Antonia passed her claim to the Spanish throne onto Leopold's sons, Joseph and Archduke Charles. Her right to do so was doubtful, but Louis and William used this to devise the 1700 Treaty of London. Archduke Charles became the new heir, while France, Savoy and Austria received territorial compensation; however, since neither Leopold or Charles agreed, the treaty was largely pointless. By early October 1700, Charles was clearly dying; his final will left the throne to Louis XIV's grandson Philip, Duke of Anjou; if he refused, the offer would pass to his younger brother the Duke of Berry, followed by Archduke Charles. Charles died on 1 November 1700, and on the 9th, Spanish ambassadors formally offered the throne to Philip. Louis briefly considered refusing; although it meant the succession of Archduke Charles, insisting William help him enforce the Treaty of London meant he might achieve his territorial aims without fighting. However, his son the Dauphin rejected the idea; French diplomats also advised Austria would fight regardless, while neither the British or Dutch would go to war for a settlement intended to avoid war. Louis therefore accepted on behalf of his grandson, who was proclaimed Philip V of Spain on 16 November 1700. Prelude to war With most of his objectives achieved by diplomacy, Louis now made a series of moves that combined to make war inevitable. The Tory majority