A retired NYPD officer claims that transit cops in his former bureau were awarded more overtime if they arrested black men, according to new court papers.

Retired cop Pierre Maximilien says officers in Coney Island’s Transit District 34 were told to avoid “soft targets” — meaning whites and Asians, as well as Jewish people — and instead focus their time on blacks and Hispanics while patrolling the subways, the documents show.

Maximilien’s allegations are part of an ongoing Manhattan federal-court lawsuit brought by NYPD Sgt. Edreweene Raymond and three others who claim police brass retaliated after they spoke up between 2011 and 2015 about a racist quota system governing ticketing and arrests.

Maximilien claims that his former commanding officer, Constantin Tsachas, who is now the second-highest-ranking transit officer in Brooklyn, enforced the troubling teachings — and punished black and Hispanic officers who didn’t comply.

“We were taught by Tsachas’ closest lieutenants that we could not give summons to what they called … ‘soft targets,’ ” reads Maximilien’s sworn affidavit. “Instead, it was emphasized that we needed to stop male blacks. Those were the ones Tsachas wanted to go to jail.”

Other officers back up the allegations in their own declarations, with cop Aaron Diaz claiming that Tsachas told him “You should write up more black and Hispanic people,” and policeman Daniel Perez saying he was scolded for “stopping too many Russian and Chinese.”

Maximilien, who retired in 2015, says white officers who didn’t follow the orders would “get a pass,” while officers of color paid dearly.

“The supervisors would place the minority officers in punishment posts by ourselves, deny vacation or leave, deny us overtime, change our shifts, give us bogus command disciplines, yell at us in roll call, and give us poor evaluations,” he wrote.

The NYPD declined to comment, citing pending litigation.

The City Law Department said in a statement, “These claims of discrimination have not been substantiated.

“The NYPD investigated the allegations in Officer Maximilien’s declaration and found them to be meritless. We’ll continue to defend against these baseless claims.”

Additional reporting by Olivia Bensimon