Answer
The Treaty of Utrecht was signed in 1713, which confirmed Philip V's accession to the throne of Spain. This treaty ended the War of the Spanish Succession, which had been fought over who would inherit the Spanish throne. Philip V was the grandson of Louis XIV of France, and his accession to the Spanish throne was opposed by many other European powers.