The rest of the war was spent campaigning in Spain and Portugal, including Almansa in 1707 and the 1708 capture of Minorca. In 1710, it fought at Almenar and Saragossa before being surrounded and captured at Brihuega. After the 1713 Treaty of Utrecht, it was posted to Ireland and with the exception of the 1719 Vigo expedition, remained there until 1740.