Between 1894 and 1902, the city was capital of the State of Rio de Janeiro, replacing Niterói, due to the two Navy Revolts. Also in this period, was chosen Hermogênio Silva, the only Deputy Governor of Rio de Janeiro whose political base was in Petrópolis. In 1897, the first cinema session took place in the city, with cinematographer showing of the Lumière brothers' first films. In 1903, the Treaty of Petrópolis, which gave Brazil the Acre territory, was signed between Brazil and Bolivia, at the residence of the Baron of Rio Branco. The sanitarian Oswaldo Cruz was named its first mayor in 1916. In the premises of the Quitandinha Palace, the declaration of war of the American countries to the Axis Powers was signed during World War II (1939–1945).