A New York Police Department School Safety Officer was indicted on Wednesday for allegedly falsely arresting a Bronx man over a parking space, the Bronx district attorney’s office said.

School Safety Officer William Stanley, 43, was charged with six counts of offering a false instrument, two counts of falsifying business records, one count each false written statement, unlawful imprisonment and official misconduct.

“This police officer allegedly abused his authority to settle a petty score in a months-long parking feud between residents and officers assigned to the School Safety Division office on Arthur Avenue,” D.A. Darcel Clark said. “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.”

On March 22, Stanley and another officer were arguing with a man who wouldn’t move his car so officers assigned to the NYPD School Safety Division office at 1932 Arthur Ave. could park there, according to the district attorney. Orville Walsh, 49, a neighbor of the man, got involved in the dispute. The officers complained to their lieutenant, who assigned Stanley to the same block the next morning.

The next morning, when Walsh left his house, Stanley was waiting for him, Clark’s office said. Stanley arrested Walsh for disorderly conduct for blocking pedestrian traffic.

At the school safety office, Stanley was told to take Walsh to the 48th Precinct, where Walsh was issued a summons for disorderly conduct.

“You guys aren’t going to be parking here,” Stanley told Walsh as Walsh left the station, Clark’s office said.