In March 1815, he declared war on Austria in the proclamation to Italian patriots in Rimini, moved north to fight against the Austrians in the Neapolitan War in order to strengthen his rule in Italy by military means. However, he was defeated by Austrian general Frederick Bianchi at the Battle of Tolentino (2–3 May 1815).