Ailing former Mayor David Dinkins struck a bicycle-riding food deliveryman with his car and drove off, leaving the man lying injured on the roadway, a lawsuit filed Friday charges.

Dinkins, 89, was driving his 2013 ­Cadillac south on York Avenue at about 11:50 a.m. on June 30 when he struck Rodrigo Garcia, according to a lawyer for the alleged victim, who is suing in Manhattan Supreme Court.

Dinkins told cops the bicyclist drove into the side of his car.

Garcia told police he was pedaling north on York to make a delivery and was about to turn left onto East 69th Street when, the suit alleges, Dinkins’ Caddy caught the front basket of Garcia’s bike, throwing him to the ground.

This resulted in Garcia suffering a broken right ankle, said his lawyer, Joel Turney.

“His right foot was on the ground. It spun his bicycle a full 180 degrees. He ended up with a . . . fracture in the ­ankle,” Turney said.

The lawyer said Dinkins fled the scene and that an ­eagle-eyed witness caught his license-plate number and alerted cops.

A police report obtained by The Post shows that cops did not check off a “left scene” box; instead they checked a box for “not investigated at scene.”

Dinkins had left the scene, but eventually told police it was the ­bicyclist who struck him, “hitting the side of his vehicle.” It was not clear why Dinkins did not immediately stop and ­report the accident.

The deliveryman was upset with cops. “A lot of cops think delivery guys are wrong. The report was 100 percent in his [Dinkins’] favor,’’ Garcia said. “The report was wrong.’’

He also questioned why Dinkins would be still driving at an ­advanced age. “How come [an] 88-years-old man can drive,” Garcia said. “Maybe he didn’t even see me. He didn’t dodge. He didn’t attempt to stop.”

Garcia, 32, who lives in The Bronx, say he has been out of work since the incident and may need surgery. He said he has been struggling to pay his medical bills.

Dinkins, a Democrat who served for one term from 1990 to 1993, lives on East 68th Street near Second Avenue, around the corner from the scene.

The ex-politican, who teaches at Columbia University, hasn’t been in good health. Earlier this year, he suffered from pneumonia and was hospitalized for congestive heart failure.

Dinkins, the city’s first and only black mayor, did not return messages seeking comment.

A building employee at his home told The Post that Dinkins still manages to drive himself around.

“He hasn’t been feeling well lately,” the worker said, adding, “He’s like Batman — you never see which way he’s coming or going.”

Additional reporting by Joe Tacopino