President Nicolas Sarkozy has made the declaration during an unannounced flying visit to the country.
Currently, about 4,000 French soldiers in Afghanistan. The remaining troops will be located in the province of Kapisa. French soldiers were involved in military operations against Taliban rebels since 2001.
Sarkozy was forced to spend only five hours, and there was a meeting with Afghan Leaders Hamid Karzai and Gen. David Petraeus.