French President Nicolas Sarkozy flew towards Afghanistan early on Wednesday vowing to pursue France's mission after 10 of its troops died in the deadliest attack yet on international forces there.
Sarkozy was flying in with his defence minister Herve Morin for a visit in which he was expected to meet some of the 21 French soldiers also wounded in the fighting Monday and Tuesday, French officials said.
The French president was also likely to meet his Afghan counterpart Hamid Karzai before returning home.
Sarkozy announced he would travel to Afghanistan as soon as the news broke Tuesday of the fighting 50 kilometres (30 miles) east of the capital Kabul.
The visit was to show the troops that "France is at their side," he said.
"In its struggle against terrorism, France has just been hard hit," Sarkozy said.
It was the deadliest attack on international forces fighting extremists in Afghanistan since the US-led war which ousted the hardline Taliban regime in 2001.
It was also the deadliest on French soldiers since a 1983 assault in Beirut in which 58 paratroopers were killed.
But Sarkozy insisted France would not be deterred from its Afghan mission, for which it has 3,000 soldiers serving in a NATO-led International Security Assistance Force (ISAF) of more than 40,000 troops from nearly 40 nations.
"My determination is intact. France is committed to pursuing the struggle against terrorism, for democracy and for freedom," he said in a statement from his holiday residence in the French Riviera.
He went on: "This is a just cause, it is an honour for France and for its army to defend it."
US forces provided air support in the battle, after which the Taliban said it had destroyed several military vehicles.
"Serious measures, notably in the air, were taken to support and extricate our men caught in an extremely violent ambush," Sarkozy said.
Morin estimated casualties on the Taliban side at 30 dead and 30 wounded.
The French losses drew expressions of sympathy from other countries which have suffered heavy losses in Afghanistan, where extremist violence has grown every year with more foreign and Al-Qaeda-linked fighters believed involved.
US President George W Bush offered his condolences, as did the leaders of Britain and Canada, other key contributors to the ISAF deployment.
The European Union's foreign policy chief, Javier Solana, said the attack was "a disgraceful and barbaric act".The latest deaths raised to 176 the number of international soldiers killed in Afghanistan this year, most of them in attacks.
Nine US soldiers were slain in July when insurgents stormed a base in the northeastern province of Kunar, in another well-planned rebel strike that also involved scores of attacks.
Twenty-four French troops have now been killed in action or in accidents in Afghanistan since French soldiers were first sent there in 2002.
Sarkozy, who paid a brief visit to Afghanistan in December, has pushed for expanding France's military role despite polls showing public opinion does not support such a move.
He announced French reinforcements to Afghanistan at a NATO summit in April -- drawing fierce criticism at home from left-wing opponents who saw the move as a sign of French alignment with US policy.