After the decline of the Gonzaga lordship, and struck by an earthquake on 5 July 1693, in 1708 it was annexed to the Austrian-held Duchy of Milan. In the late 18th century it was captured by the French and later retaken by the Austrians. During the First Italian War of Independence, the Piedmontese forces won two actions (8 April and 30 May 1848, called the battle of Goito) over the Austrians here.