Elisabeth of Parma, Philip V's wife, exerted great influence on Spain's foreign policy. Her principal aim was to have Spain's lost territories in Italy restored. In 1717, Philip V ordered an invasion of Sardinia, which had been given to Austria by the Treaty of Utrecht. Spanish troops then invaded Sicily. The aggression prompted the Holy Roman Empire to form a new pact with the members of the Triple Alliance, resulting in the Quadruple Alliance of 1718. All members demanded Spanish retreat from Sardinia and Sicily, resulting in war by December 1718. The war lasted two years and resulted in a rout of the Spanish. Hostilities ceased with the Treaty of The Hague in February 1720. In this settlement, Philip V abandoned all claims on Italy. Later, however, Spain reconquered Naples and Sicily during the War of the Polish Succession (1733–35). In 1748, after the War of the Austrian Succession (1740–48), Spain obtained the duchies of Parma, Piacenza and Guastalla in northern Italy.