the department is surrounded by the french departments of haute-garonne to the west and north, aude to the east, and pyrénées-orientales in the southeast, as well as spain (lleida) and andorra in the south.