THE BRONX — An NYPD school safety officer who arrested a man for parking in a spot his fellow officers wanted for themselves has been indicted, the Bronx District Attorney’s office announced Wednesday.

Officer William Stanley, 43, and another officer began arguing with a man who refused to give up his parking spot outside the NYPD School Safety Division office on Arthur and East Tremont avenues on March 22, the DA said.

Orville Walsh, 49, witnessed the fight and tried to intervene on behalf of the man, who was his neighbor on Arthur Avenue, according to the DA.

The following day, Stanley appeared on Walsh’s doorstep to arrest him for disorderly conduct and blocking pedestrian traffic, the DA said.

After Walsh received a summons at the 48th Precinct, Stanley allegedly told him, “You guys aren’t going to be parking here,” according to the DA.

“This police officer allegedly abused his authority to settle a petty score,” said District Attorney Darcel Clark.

“He is a 15-year veteran of the NYPD and should have known that such unprofessional conduct undermines the public’s trust in law enforcement.”

Stanley was arraigned in Bronx Supreme Court where he was charged with unlawful imprisonment, official misconduct and making a punishable false written statement and several other charges, the DA said.

The officer is scheduled to return to court on Feb. 1 and faces up to four years in prison if convicted.

Stanley's attorney was not immediately available to comment.