In 1790, Montauban was in the Lot department as the capital of a district; with the creation of the "arrondissements" in 1800, Montauban became a "sous-préfecture" in the Lot department. When Napoleon created the Tarn-et-Garonne department in 1809, Montauban became the préfecture (capital) of the new department.