From 1790 to 1795, Castelsarrasin was the capital of the District of Castelsarrasin in the Haute-Garonne department. In 1808, when the Tarn-et-Garonne department was created, the arrondissement of Castelsarrasin was made part of the new department.