Pope Pius IX ordered the commander of the papal forces to limit the defense of the city in order to avoid bloodshed. The city was captured on 20 September 1870. Rome and what was left of the Papal States was annexed to the Kingdom of Italy as a result of a plebiscite the following October. This marked the definite end of the Papal States.