In 1725, negotiations with the Queen of Spain, Elisabeth Farnese had Maria Anna as a possible wife of Philip, Duke of Parma, who was just five. This match was supposed to smooth over relations with Spain. An alliance of Spain and Austria was signed on 30 April 1725 and thus guaranteed the Pragmatic Sanction of the Habsburgs Maria Theresa right of her father's lands being his eldest daughter, which was first declared in 1713. Based on the terms of the treaty, the Austrian Empire relinquished all claims to the Spanish throne. It also agreed that Spain would invade Gibraltar with the help of the Austrians. Despite this, the Anglo-Spanish War stopped the ambitions of Elisabeth of Parma and with the signing of the Treaty of Seville (9 November 1729) saw the abandonment of the Austro-Spanish marriage plans.