French troops occupied Rome in February 1808; on 17 May 1809 a decree dated from Vienna annexed the Papal States outright. Pius VII replied with excommunication and was abducted seven weeks later. A senatus-consultum of February 1810 made Rome a free imperial city, the Empire's second after Paris, and provided that the heir would bear the title of King of Rome.
The French administration governed for four years under the prefect Camille de Tournon. It was highly active: census, land registry, street lighting, marsh drainage, hospital reform, the suppression of dozens of convents. The city, poor and without industry, resisted passively; the clergy refused the oath en masse, and the occupier deported hundreds of churchmen.
The most visible legacy is archaeological. The Commission for Embellishments cleared the Forum, dug out the arch of Titus and the Colosseum, excavated the temple of Vespasian and laid out the Pincio promenade. For the first time Roman antiquity was treated as a public heritage to be preserved, not as a quarry or a backdrop for villas.
Napoleon never saw the city whose name his son bore. The pope returned in May 1814; the decrees were annulled, the convents reopened, the excavations continued. After 1815 Rome took in Letizia Bonaparte, Cardinal Fesch and several members of the family: the capital the Empire failed to hold became the refuge of its exiles.