BEDFORD-STUYVESANT, Brooklyn — An NYPD officer who stomped on a man’s head while he was facedown on the ground while being arrested was sentenced on Thursday to 2 years probation and instructed to resign, according to the Kings County District Attorney.

Joel Edouard, 38, was captured on cellphone video in 2014 stomping on the head of Jahmiel Cuffee, a 32-year-old being detained for allegedly having marijuana.

Cuffee initially “tussled” with officers and resisted arrest, but was facedown and being subdued by several officers when video showed Edouard briefly pointing his gun at the man, a DA news release stated.

Edouard then walked away and returned, stomping on Cuffee’s head.

“He abruptly stomped on top of the gentleman’s head,” said Gary Dormer, who recorded what happened on his cellphone, shortly after the video’s release. “He lifted his foot with excessive force and came down like he was stepping on an ant or a roach or something at the time.”

The stomping caused Cuffee’s head to hit the concrete — leaving him dizzy and suffering a contusion, headaches and nausea, the release stated.

“This police officer intentionally and needlessly stomped on the head of a suspect who had already been restrained by fellow officers,” District Attorney Ken Thompson said. “And he did so in broad daylight and in front of a crowd of people. He deserved to spend time in jail for committing such a blatant act of police brutality, but we accept the sentence imposed by the court.”

Edouard was sentenced to 2 years probation and instructed to resign.

Cellphone video of the incident was released just days after video police putting Eric Garner in a chokehold.