A Queens taxi driver was arrested early Sunday at Kennedy Airport after he attacked a fellow cabbie — punching the man, then whipping him with a car antenna in front of disembarked airline passengers, Port Authority police said.

The attack took place about 4:30 a.m. outside the arrivals gate at Terminal 4, said Port Authority spokesman Joseph Pentangelo. The arrested driver, Outmane Bouzid, 26, of 108th Street in Corona, Queens, was charged with assault, criminal possession of a weapon and harassment. 

In a court appearance Monday, a temporary restraining order was issued in the case. Bouzid was released on his own recognizance and ordered back to court Dec. 21, according to court records.

Pentangelo said Bouzid began arguing with the unidentified cabbie from Brooklyn in the will call lot at the airport. The argument continued as the two drivers pulled into the wait line for passengers, according to Pentangelo.

Bouzid told investigators the other driver, 42, “cut him off,” Pentangelo said. Bouzid then opened the victim’s door and began punching him as a handful of passengers, including an unnamed woman from Commack, looked on, Pentangelo said.

“The passengers are there,” Pentangelo said, “and this one guy punches the other driver several times. Then, as if that weren’t enough, he goes back to his cab, arms himself with the car antenna, then comes back — and starts whipping the guy with it.” 

Witnesses told police Bouzid hit the victim in the head with the antenna “multiple times.”

The injured cabbie was treated at the scene and Bouzid’s cab was impounded by police.

Pentangelo said the Taxi & Limousine Commission will determine what happens with Bouzid’s license and medallion.