Castelsarrasin is a subprefecture of the Tarn-et-Garonne department since 1809. It is also the capital of the "arrondissement" of Castelsarrasin and the administrative centre () of the canton Castelsarrasin with 6 "communes" and 20,937 inhabitants in 2014.