On 20 September 1870 he commanded the defenders of the Porta Salaria during the unsuccessful defense of Rome against the army of the new Kingdom of Italy.