Kudos to the professional @united flight crew on our flight from Sydney to San Francisco that was rerouted to Auckland to arrest this bigot. pic.twitter.com/Iwkf9ta8rS

A U.S.-bound flight from Australia was diverted to New Zealand on Sunday over a passenger who was allegedly unhappy about his middle seat.

The New Zealand Herald reported that the passenger, who was not identified, became angry when two travelers of either Indian or Pakistani descent seated on either side of him began speaking to each other.

Video posted on social media showed him arguing with a flight attendant on United Airlines Flight 870, which was scheduled to travel from Sydney to San Francisco.

“If you guys treat people right on these things, you see two last names the same, don’t put someone else in the middle of them,” the passenger said in a clip posted by another traveler, Neil Kay.

Kay wrote that the irate passenger was a “misogynistic, homophobic bigot” who harassed passengers and threatened the cabin crew.

“I’m not yelling,” the man said at another point in the clip. “You want to hear me fucking yell?”

It was not clear what the flight attendant said in reply, but it appears she told him that the aircraft could be diverted to have him removed.

“Do you know how cool it would be to have the airplane turned around because of me? You are going to do that?” he said as she walked away. “You do that! I’m being so impolite aren’t I, fat ass.”

One clip posted by Kay showed the passenger cursing into a phone while another saw him being escorted off the flight in Auckland without further incident. Stuff.co.nz reported that the removed passenger was told to cooperate or face charges.

The passenger, an American, was denied entry into New Zealand and held in custody while arrangements were made to send him home, per New Zealand’s 1NEWS. The other 252 travelers on Flight 870 were put up in hotels by the airline, the San Francisco Chronicle reported.

The website said the airline also apologized to the passengers.

If images posted by Kay were any indication, at least some of the passengers bonded over the experience as they waited for their new flight: