Foix (French pronunciation: [fwa]; Occitan: Fois [ˈfujs, ˈfujʃ]; Catalan: Foix [ˈfoʃ]) is a commune, the former capital of the County of Foix. Today it is the Préfecture of the Ariège department in southwestern France in the Occitanie region. It is the second least populous administrative centre of a department in all of France, the least-populous being Privas. Foix lies south of Toulouse, close to the border with Spain and Andorra. At the 2009 census, the city had a population of 9,861 people. It is only the second city of the department after Pamiers which is one of the two sub-prefectures. Foix is twinned with the English cathedral city of Ripon.