A Jersey City police officer says he was reprimanded and then transferred to a different district after he refused to stop issuing traffic tickets in front of a West Side restaurant popular with cops.

Khareem Miller, an 11-year veteran of the police force, alleges in a lawsuit that police brass told him on numerous occasions that he was not allowed to issue summonses to anyone outside Carmine’s Italian Deli on Mallory Avenue because the eatery’s owner is “connected to the mayor and the chief of police.”

Police Chief Robert Cowan’s brother Mark, a police lieutenant, is accused of reprimanding Miller about the summonses while Lt. Cowan was “eating a platter of food from Carmine’s.” Another time, Miller issued summonses to multiple vehicles parked illegally outside the deli, leading to a tongue lashing by the police chief, the lawsuit says.

“You’re not writing tickets over here, do you understand me?” Cowan is quoted in the complaint as saying. “The mayor is inside.”

The lawsuit, filed March in state Superior Court in Jersey City, names Jersey City, Chief Cowan, his brother and two other members of the police force as defendants.

Chief Cowan could not be reached for comment. City spokeswoman Jennifer Morrill said the city does not comment on pending litigation.

This is at least the second time since Cowan became chief that he has been accused of transferring police officers as a form of retaliation. A lawsuit filed last year in federal court alleges Cowan reassigned four cops because two of them had pulled over and ticketed a woman who claimed to have political connections at City Hall.

Members of the Cowan family were big Fulop boosters during last year’s mayoral race. Lt. Cowan donated $775 to Fulop’s campaign, while Chief Cowan gave $500, according to campaign documents. Miller is not listed as a donor to Fulop or Fulop’s chief adversary last year, former Mayor Jerramiah Healy.

When The Jersey Journal visited Carmine’s to speak to its owner, there were multiple customers double parked outside while they picked up orders.

Deli owner Carmelo Scalia told The Jersey Journal he wouldn’t mind if Miller occasionally came to his store to issue tickets, but “he used to give me trouble every day.

“This guy used to actually stay in the corner on my block just to ticket my customers,” Scalia said.

Mallory Avenue resident Sam Sadaka, 39, said there is a steady stream of customers who double park outside the deli, on both sides of Mallory, including police cars and fire trucks.

“It bothers the people in rush hour,” he said. “Nobody gives them tickets because… the customers, they are cops.”

Nick Ladagona, who owns property on Mallory Avenue, said he sees no problem with Carmine’s double-parking customers.

“They jump in, they get a sandwich, they jump out,” said Ladagona, 67.

In the lawsuit, Miller says his superiors began bugging him about the traffic summonses in the spring and summer months of 2013. Fulop was elected mayor in May 2013 and he promoted Chief Cowan to his current role in September of that year.

The complaints from his superiors continued until Dec. 13, when Miller says he was “abruptly transferred” from the west to the north district, according to the lawsuit. It is “well known” in the police department that Miller and the north district’s commander have had “past conflict,” the lawsuit says.

Miller’s new direct supervisor is an officer who pleaded with him last year not to issue traffic summonses outside Carmine’s, according to the lawsuit.