Recanati was occupied by Napoleonic troops in 1798. In 1831 it took part to the Risorgimento riots, and was annexed to the newly formed Kingdom of Italy in 1860 after the dissolution of most of the Papal States.