 Following this, the War of the Spanish Succession broke out and Archduke Charles was also proclaimed king of Spain, as Charles III, in opposition to Philip V. He was proclaimed in Vienna, and also in Madrid in the years 1706 and 1710.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.Philip ascended the Spanish throne but had to renounce his claim to the throne of France for himself and his descendants.