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
-
J. Derobie returns with ‘Firm After All’ EP
3 mins -
Samuel William Opoku-Agyakwa
7 mins -
I won’t protect your legacy of corruption, bankrupt economy – Mahama replies Akufo-Addo
13 mins -
Everyone safe after building collapses in Nairobi
17 mins -
Ariana Grande was carried in ‘asleep’ for Met Gala 2024 performance
18 mins -
Fuse ODG visits budding artiste Fred Kobby’s neighbourhood
18 mins -
South Africa poll agency rejects bid to remove Zuma from MK party
29 mins -
WAFU B U-17 Championship: Black Starlets face Niger in pre-tournament friendly on Thursday
40 mins -
Africans urged to employ indigenous knowledge in evaluation practices
41 mins -
Duopoly of NPP, NDC destabilising Ghana’s progress – Alan Kyerematen
47 mins -
Turf war not helping anti-corruption agencies; let’s merge them – Domelevo
55 mins -
Voter Registration: Residents satisfied with process so far on Day 2 in Ashanti Region
1 hour -
Foreign Affairs Ministry revives Made-In-Ghana Bazaar to link local industries to foreign market
1 hour -
Attacks on journalists threaten core democratic values – Information Minister-designate
1 hour -
Your legacy is one of debts and chaos; nothing better – Joyce Bawah to Akufo-Addo
1 hour