The preposition before the name of a city or a country is chosen by the name itself: whether it is a city or a country, what gender the country is, whether its name is singular or plural. The same preposition answers both “where?” and “where to?”: J'habite à Paris — “I live in Paris”, Je vais à Paris — “I am going to Paris”.
| Name | Where? Where to? | Where from? |
|---|---|---|
| city | à Paris | de Paris, **d'**Oslo |
| feminine country | en France | de France, **d'**Italie |
| masculine country beginning with a vowel | en Iran | **d'**Iran |
| masculine country beginning with a consonant | au Japon | du Japon |
| plural country | aux États-Unis | des États-Unis |
Au, aux, du, des are the contracted article: with plural country names and masculine country names beginning with a consonant, the article merges with the preposition. There is no article after en or when de means “from” before a feminine country name: en France, de France.
In en Iran, en Italie the n is pronounced and joins the next word — this is liaison.
The gender of a country
A country whose name ends in -e is usually feminine: la France, la Russie, l'Italie, l'Espagne, la Chine. Most other country names are masculine, as in le Japon, le Canada, le Brésil, le Portugal. The exceptions are learnt: le Mexique is masculine, so au Mexique. L'Europe, l'Asie, l'Afrique are feminine: en Europe, en Asie, en Afrique.
A city with an article
A few cities have an article as part of their name, and then it merges with the preposition: Le Caire “Cairo” — au Caire, du Caire.