On 20 September 1870, the military forces of the King of Italy overthrew what little was left of the Papal States, capturing in particular the city of Rome. The following year, the capital was moved from Florence to Rome. For the next 59 years after 1870, the Church denied the legitimacy of the Italian King's dominion in Rome, which it claimed rightfully belonged to the Papal States. In 1929, the dispute was settled by the Lateran Treaty, in which the King recognized Vatican City as an independent state and paid a large sum of money to compensate the Church for the loss of the Papal States.