Spain's loss of Gibraltar and other Spanish territories in the Mediterranean was resented by the Spanish public and monarchy alike. In 1717 Spanish forces retook Sardinia and in 1718 Sicily, both of which had been ceded to Austria under the Treaty of Utrecht. The effective Spanish repudiation of the treaty prompted the British initially to propose handing back Gibraltar in exchange for a peace agreement and, when that failed, to declare war on Spain. The Spanish gains were quickly reversed, a Spanish expedition to Scotland in 1719 supporting the Jacobites was defeated and peace was eventually restored by the Treaty of The Hague.