Gex is a subprefecture of the Ain department and the capital of the arrondissement of Gex in the same department. It is also the capital of the canton of Gex, formed by 7 "communes" (29,557 inhabitants) 