 After many battles, especially in Spain, the treaty of Utrecht recognised Philip, Duke of Anjou, Louis XIV's grandson, as King of Spain (as Philip V), thus confirming the succession stipulated in the will of the Charles II of Spain.However, Philip was compelled to renounce for himself and his descendants any right to the French throne, despite some doubts as to the lawfulness of such an act.Spain's Italian territories were apportioned.