He was taking advantage of the power vacuum in France after the death of Louis XIV, and the fact that Austria was tied up in the Austro-Turkish War of 1716–18.
But on 21 July 1718 the Treaty of Passarowitz ended the war with Turkey and on 2 August this led to the formation of the Quadruple Alliance against Spain, between Austria, Britain, the Dutch Republic, and France.
Meanwhile, the Spanish, with 30,000 men under command of the Marquis of Lede, had taken the whole island, with the exception of the area around Messina, which was besieged since 18 July.
The Austrians were pushed back and the Spanish pursued the fleeing army, causing many casualties.
Messina was taken by the Spanish, but the Marquis de Lede didn't take to opportunity to drive the Austrians completely from the island, leaving them a bridgehead around Milazzo.