A man was blasted with a stun gun after pulling out a sword inside an airport.
Shocking footage shows three officers surrounding the suspect as they try to talk him down.
One officer even dry-fired his stun gun in a desperate bid to stop him doing something he would regret.
READ MORE: Angry traveller plays dead on airport floor after refusing to pay baggage charge
But the man suddenly reached behind his back and pulled out a long blade from his belt.
Within seconds, he was struck from behind with the stun gun.
He screamed in pain before collapsing to the floor, knocking over a plant pot as he went down.
The suspect lay rigid on the ground as officers moved in to handcuff him, as reported by Need To Know.
The drama unfolded in the arrivals hall of Viracopos International Airport on Sunday (26 Apr) night.
Airport staff said the man – who was not a passenger – had been threatening people with the weapon, which had a 47cm (19in) blade.
Officers initially tried to negotiate with him but were unable to calm the situation.
The São Paulo State Public Security Department said: “To protect the safety of airport users and the man himself, officers had to use a taser to restrain and disarm him.”
Police believe the 45-year-old, who has a history of violent offending, was suffering a psychotic episode at the time.
A report said he showed “clear signs of being completely disconnected from reality” at the station, where he allegedly believed he was speaking to members of a criminal gang.
The report added: “It is clearly a medical case, not a police matter.”
Despite the terrifying scenes, no one was injured.
The man was later released and taken to hospital.
He now faces a minor charge for carrying a bladed weapon, with police also investigating where the sword came from.
READ MORE: Careless airport worker chucks £2,250 worth of guitars on ground during luggage unloading