 However, Philip IV had stipulated in his will the succession should pass to the Austrian Habsburg line, and the Austrian branch also claimed that Maria Theresa of Spain, Philip's grandmother, had renounced the Spanish throne for herself and her descendants as part of her marriage contract.This was countered by the French claim that it was on the basis of a dowry that had never been paid.Thus, the war broke out and Archduke Charles was proclaimed king of Spain, as "Charles III", opposite to Philip V. Charles renounced his claims to the Spanish throne in the Treaty of Rastatt of 1714, but was allowed the continued use of the styles of a Spanish monarch for his lifetime.