A drunken woman was caught in shocking video going on a foul-mouthed, racist tirade against “foreigners” at 39,000 feet before a flight attendant — a former TV presenter — calmed her down.

The unnamed Ukrainian woman went on the rant after downing a bottle of whisky she had bought at a duty free shop in Barcelona before boarding the flight to Kiev, according to the UK’s Sun.

Among the fellow passengers she targeted was a Chinese man who had to move seats to escape her wrath — as she also hit people who tried to calm her on the packed flight.

“It was terrifying, nasty and scary,” one female passenger said.

Another flier praised Lidiya Polyanskaya, a former television personality, for ending the air rage.

“When the stewardess said in her professional TV presenter’s voice, ‘Now you calm down!’ — even I calmed down,” one witness said.

Polyanskaya’s former colleagues at ATR TV later joked that she should consider going back to her presenter’s job — to which she replied: “Ha-ha, I am already thinking about it.”

The unhinged woman was detained by police after the plane landed in the Ukrainian capital. It was not immediately clear what charges she faces.

According to social media reports, the woman had ignored requests from flight attendants not to drink the booze on board.

“She decided that foreigners flying with her should not remain in the cabin any longer. Just because they were foreigners,” one user said.

The passengers who posted the clip included the message: “If you provoke a dangerous situation, attack passengers, injure people around you, make them anxious — please do not think that your actions will remain unknown.”