Seven workers seized at a Proctor & Gamble (P&G) plant outside the Turkish city of Istanbul were rescued after a nine-hour ordeal, officials say.
Police in Gebza moved in after the suspect, who was apparently protesting at the war in Gaza, went to the toilet.
Local governor Seddar Yavuz said the hostages had suffered no injuries.
Images online showed the suspect, his face hidden by a Palestinian scarf, wearing what appeared to be an explosives vest and carrying a gun.
He was detained unharmed after the "meticulous" rescue operation, Mr Yavuz added.
The hostage-taker entered the plant at about 15:00 local time (12:00 GMT), DHA news agency reports. The hostages were released shortly before midnight.
Officials say the suspect wanted to draw attention to the ongoing situation in Gaza.
A Palestinian flag was reportedly painted at the entrance of the building with a sign saying "doors will be open for Gaza".
Police officers cordoned off access to the factory and medical staff were dispatched to the scene.
Officials say a large-scale investigation into the incident is under way.
Footage from the scene during the standoff showed relatives of some hostages clustered together at a police cordon some distance from the plant.
İsmet Zihni, whose wife works at the plant, told DHA she had sent him a message saying she had been taken hostage.
However, he added he did not know "if it was her or someone else".
Relatives of the hostages had expressed frustration at the lack of information from Turkish officials or the police.
"We have been waiting for six hours without any official making a statement," the father of one hostage told AFP earlier.
In a statement, P&G said it was relieved no-one was harmed during the incident.
"We are grateful to the authorities and first responders who managed the situation with courage and professionalism," the company added.
It also said the suspect was not an employee.
Latest Stories
-
Ghana and Seychelles strengthen bilateral ties with focus on key sectors
29 mins -
National Elections Security Taskforce meets political party heads ahead of December elections
33 mins -
Samsung’s AI-powered innovations honored by Consumer Technology Association
52 mins -
Fugitive Zambian MP arrested in Zimbabwe – minister
1 hour -
Town council in Canada at standstill over refusal to take King’s oath
1 hour -
Trump picks Pam Bondi as attorney general after Matt Gaetz withdraws
2 hours -
Providing quality seeds to farmers is first step towards achieving food security in Ghana
2 hours -
Thousands of PayPal customers report brief outage
2 hours -
Gary Gensler to leave role as SEC chairman
2 hours -
Contraceptive pills recalled in South Africa after mix-up
2 hours -
Patient sues Algerian author over claims he used her in novel
2 hours -
Kenya’s president cancels major deals with Adani Group
3 hours -
COP29: Africa urged to invest in youth to lead fight against climate change
3 hours -
How Kenya’s evangelical president has fallen out with churches
3 hours -
‘Restoring forests or ravaging Ghana’s green heritage?’ – Coalition questions Akufo-Addo’s COP 29 claims
3 hours