A taxi driver sued the city yesterday over his arrest following a wild confrontation with two drunken women who forced their way into his off-duty yellow cab last year.

Court papers say Jaaphar Abdul-Hamid was about to head back to his Brooklyn garage after dropping off a passenger near Union Square when he saw the loaded duo running toward him Feb. 26.

The unidentified women — described only as a “highly drunk girl” and her “moderately drunk” sister — ignored the illuminated “off-duty” light as his fare was preparing to pay, and yanked open the rear passenger-side door after Abdul-Hamid stopped at East 17th Street and Fifth Avenue, the Manhattan federal court lawsuit says.

Although his fare was still paying for her ride with a credit card, the soused siblings allegedly began screaming the F-word at her, “causing her to jump out of the car before the receipt was printed.”

The “highly drunk girl” — who looked like she “was about to throw up” — then lay down on the back seat and “continued to curse and behave rudely,” the suit says.

After Abdul-Hamid told the women to get out, the less-wasted of the two insisted her sister “is not drunk, she is just not feeling well.”

Meanwhile, the “highly drunk girl,” began yelling, “I am fine, I only need a bathroom” and demanded to be taken to a gas station or a Dunkin’ Donuts, the suit says.

As Abdul-Hamid pleaded with them to leave the cab, the “highly drunk girl” spit on his face through the open partition. Both women then got out, leaving the passenger-side door open.

But when Abdul-Hamid went to close their door, the “highly drunk girl” hopped into the driver’s seat and dropped his keys down a sewer drain. And when Abdul-Hamid tried to call the cops, the women attacked him, knocking his cellphone to the ground, and the “moderately drunk” woman stuck it in her purse.

Abdul-Hamid then snatched the bag and locked himself in the cab, where he called 911.

But after the cops came, Abdul-Hamid says, the women accused him of stealing one of their phones.

The cops searched the cab, and found the phone

Abdul-Hamid claims a sergeant then announced: “You, I got you! You stole the passenger’s phone, right? You are under arrest, for possession of stolen property.”

After several court appearances, Abdul-Hamid says the “trumped-up” charges were dismissed June 29.

A spokeswoman for the city Law Department said, “We will review the papers upon receipt.”