Article 21-17 of the French Civil Code
Subject to the exceptions provided for in Articles 21-18, 21-19 and 21-20, naturalisation may only be granted to a foreigner who can prove habitual residence in France for the five years preceding the submission of the application.