# Gex, Ain

Gex (French:; Arpitan: Gèx; Italian: Gesio) is a commune in the Ain department in eastern France and a subprefecture of the department.
It lies 5 km (3.1 mi) from the Swiss border and 16 km (9.9 mi) from Geneva. It is a subprefecture of Ain.

## History

The town gave its name to the Pays de Gex, at various times under the jurisdiction of France, Switzerland and the Duchy of Savoy.
The future site of Gex was inhabited around 1800 BC. Around 220 BC, a group of Gallic warriors known as the Gaesatae resided in the area around Gex. Afterwards, the town was part of Roman Gaul.
In 1252, Léonette of Geneva, Lady of Gex, descendant of the count of Geneva, Amadeus I, married Simon of Joinville, son of Simon of Joinville and Beatrix of Auxonne, Lady of Marnay. The city of Gex was included in her dowry. Later that century, the Joinvilles set up a castellan and a judge in the town.
On November 13, 1353, the town of Gex as well as its castle were captured by Savoy, and the pays de Gex was incorporated into the Savoyard state for nearly two centuries. The pays de Gex was invaded in 1536 by the Canton of Bern. The Bernese established a bailiwick at Gex, managed by a bailiff. Walls were built in 1550.
The pays de Gex was returned to the Duchy of Savoy by the treaties of Nyon in 1563 and Lausanne in 1564. The Genevans seized it in 1589. Savoy, with the assistance of Spain, tried several times to take back the pays de Gex, but they were unsuccessful. During these attacks, the town of Gex was burned in 1590 on July 23 and again on July 30; few of the houses withstood the fires.
In 1601, during the reign of Henry IV, control of the pays de Gex passed to France as part of the Treaty of Lyon.
With the 1815 Protocol of the Conference of Paris, (signed on 20 November) and the Treaty of Paris of the same date, Gex was placed in the Customs region of Switzerland and neutralised. The resolutions regarding the Pays de Gex were annulled by Art 435 of the Treaty of Versailles. In November 1923 France moved its customs office to Gex, and the matter was brought before the Permanent Court of International Justice (predecessor of the International Court of Justice), which decided in favour of Switzerland; this case is also notable for being an early example of the doctrine of fundamentally changed circumstances being invoked before an international court. A compromise was reached in 1932.
Historically, citizens spoke a dialect of the Franco-Provençal language but this dialect is not in use anymore. In 1910 the commune of Mijoux was created from part of the commune of Gex.

## Population

Population data for 1906 and earlier include the commune of Mijoux.
| Year | Pop. | ±% p.a. |
| 1793 | 2,398 | — |
| 1800 | 2,415 | +0.10% |
| 1806 | 2,354 | −0.43% |
| 1821 | 2,536 | +0.50% |
| 1831 | 2,834 | +1.12% |
| 1836 | 2,894 | +0.42% |
| 1841 | 2,835 | −0.41% |
| 1846 | 2,785 | −0.36% |
| 1851 | 2,874 | +0.63% |
| 1856 | 2,662 | −1.52% |
| 1861 | 2,602 | −0.45% |
| 1866 | 2,642 | +0.31% |
| 1872 | 2,675 | +0.21% |
| 1876 | 2,719 | +0.41% |
| 1881 | 2,720 | +0.01% |
| 1886 | 2,693 | −0.20% |
| 1891 | 2,659 | −0.25% |
| 1896 | 2,878 | +1.60% |
| Year | Pop. | ±% p.a. |
| 1901 | 2,822 | −0.39% |
| 1906 | 2,727 | −0.68% |
| 1911 | 2,175 | −4.42% |
| 1921 | 2,030 | −0.69% |
| 1926 | 2,065 | +0.34% |
| 1931 | 2,048 | −0.17% |
| 1936 | 1,966 | −0.81% |
| 1946 | 1,874 | −0.48% |
| 1954 | 2,041 | +1.07% |
| 1962 | 2,361 | +1.84% |
| 1968 | 3,137 | +4.85% |
| 1975 | 4,296 | +4.59% |
| 1982 | 4,868 | +1.80% |
| 1990 | 6,615 | +3.91% |
| 1999 | 7,733 | +1.75% |
| 2007 | 9,505 | +2.61% |
| 2012 | 10,677 | +2.35% |
| 2017 | 13,118 | +4.20% |
Graphs are unavailable due to technical issues. There is more info on Phabricator and on MediaWiki.org. :
Source: EHESS and INSEE (1968-2017) :

## Economy

Its principal market for exports is Geneva. A weekly market takes place in the town on Saturdays.