Several people have been released unharmed after being taken hostage at an H&M store in the German city of Leipzig, police officials said.
A 41-year-old man is in custody, police spokesperson Uta Barthel said.
Authorities believe the man, who gave himself up, was suffering from psychological problems.
Police were called to the store at about 1230 (1030 GMT) after reports that an armed man was threatening people in the clothing shop.
It is not clear what type of weapon the man was carrying or how many people were inside the shop at the time.
Authorities sealed off much of the centre of Leipzig and deployed snipers on rooftops.
The hostages, who were held for several hours, are now receiving medical care.