In 1866, the Third Italian War of Independence allowed Italy to annex Veneto. In 1870, Victor Emmanuel also took advantage of the Prussian victory over France in the Franco-Prussian War to conquer the Papal States after the French withdrew. He entered Rome on 20 September 1870 and set up the new capital there on 2 July 1871. He died in Rome in 1878, and was buried in the Pantheon.