French police have shot dead the man who attacked Strasbourg's Christmas market on Tuesday, the interior minister has said.
A police unit came across Cherif Chekatt in a Strasbourg street and shot him after he opened fire.
Three people have died following the shooting at the market and several more were seriously injured.
Chekatt, 29, had a string of criminal convictions in France and Germany and had become a radical Islamist in jail.
How was Chekatt found?
Interior Minister Christophe Castaner said three police officers had spotted a man matching Chekatt's description on rue du Lazaret, in the Neudorf area of Strasbourg at 21:00 local time (20:00 GMT).
As the police moved to stop him, the suspect turned round and opened fire. They fired back and "neutralised" the attacker, said Mr Castaner, who later went to the scene.
French President Emmanuel Macron thanked security forces in a tweet and vowed: "Our commitment against terrorism is total."
Hundreds of French police and security forces had been searching for Chekatt.
A large police operation had taken place in Neudorf earlier on Thursday, but ended apparently without results.
Five people have been arrested in connection with the attack. They include Cherif Chekatt's parents and two of his brothers.
Strasbourg mayor Roland Ries said that finding Chekatt meant the worried people of his city would now be able to return to a normal life.
Mr Castaner thanked security forces in a tweet:
The city's Christmas market, which attracts two million people every year, is due to reopen on Friday, and Mr Castaner is due to visit it.
How did Tuesday's attack unfold?
At about 20:00 local time (19:00 GMT), a man opened fire close to the famed Christmas market near place Kléber, which attracts thousands of visitors.
France's anti-terror prosecutor, Rémy Heitz, said the man had shouted "Allahu Akbar" ("God is greatest") as he opened fire.
The suspect was armed with a gun and a knife and escaped the area after jumping into a taxi, Mr Heitz said.
As he fled he came into contact with four soldiers, Mr Heitz said, and began firing at them. The soldiers fired back, apparently hitting him in the arm.
The attacker told the taxi driver he had killed 10 people, and also said he had been injured during a firefight with soldiers.
He ordered the taxi driver to drop him near the police station in Neudorf. When he got out of the vehicle, he fired at police officers before escaping.
What do we know about the suspect?
Chekatt was born in Strasbourg and was already known to the security services.
He was the subject of a "fiche S", a watchlist of people who represent a potential threat to national security.
He had 27 convictions for crimes including robbery spanning France, Germany and Switzerland, and had spent considerable time in prison as a result.
Police were seeking him on Tuesday morning in connection with another case, but did not find him at home.
A search of his apartment in Neudorf revealed a grenade, a rifle, four knives - two of which were hunting knives - and ammunition.
The Islamic State group's self-styled news agency, Amaq, on Thursday said that Chekatt was "an Islamic State soldier" who had "carried out the operation in response to calls for targeting citizens of coalition countries" fighting its militants in Syria and Iraq.
Who were the victims of the attack?
Three people died in Tuesday's attack, according to a new toll from the local préfecture on Thursday.
One of the five seriously injured in this attack has been declared brain-dead, said the Paris prosecutor's office on Thursday.
The death of Kamal Naghchband, a garage mechanic originally from Afghanistan, was announced on Thursday. The father of three died in hospital. His mosque announced his funeral would take place after Friday prayers. He had been visiting the market with his family and was shot in the head, his cousin told AFP news agency.
Suite au décès de Kamal Naghchband, père de 3 enfants, nous vous annonçons que son office funéraire aura lieu ce vendredi 14 décembre à la Grande Mosquée Eyyûb Sultan de #Strasbourg, après la prière du vendredi, à 13:00. Il sera inhumé au Cimetière musulman de Strasbourg Meinau pic.twitter.com/Lk6SmtkvyH— Grande Mosquée Eyyûb Sultan (@GM_EyyubSultan) December 13, 2018
A retired bank worker aged 61, from Strasbourg, was also killed in the attack, according to media reports.
The third victim was a Thai tourist who was on holiday with his wife.
Thailand's Prime Minister Prayuth Chan-ocha sent a letter of condolence to his French counterpart on Thursday that confirmed the man was among the dead, AFP reports.
Anupong Suebsamarn, 45, has been named by Thai media as the victim.