A Hempstead man was sentenced Wednesday to 20 years in prison for attacking and trying to kill his ex-girlfriend, prosecutors said.

Shaquon Lockwood, 21, pleaded guilty last month in Mineola to second-degree attempted murder and attempting to bribe a witness, according to the Nassau County district attorney’s office.

Acting state Supreme Court Justice Christopher Quinn on Wednesday sentenced Lockwood to 20 years, with 5 years of post-release supervision, prosecutors said.

“This defendant attempted to brutally murder his ex-girlfriend with a box cutter a month after beating her and breaking her nose,” Nassau District Attorney Madeline Singas said in a statement. “Predators like this will find no sanctuary in Nassau County and today’s sentence ensures this defendant will spend many years behind bars where he belongs.”

Lockwood was in the basement of his home on June 27, 2015, when he began arguing with the victim, his girlfriend at the time who was 20 years old, prosecutors said.

“As the argument escalated, the defendant grabbed a box cutter and slashed the victim multiple times on her face and neck,” prosecutors said in a news release. “The defendant fled the house through a basement window. The victim was left bleeding on the floor behind a locked door, while the defendant’s family attempted to get into the room.”

advertisement | advertise on newsday

Prosecutors said the unidentified victim unlocked the door and then collapsed. She was taken to Winthrop-University Hospital and treated for multiple cuts to her head, face, neck, back and hands.

The victim required multiple surgeries and she “still does not have full feeling on the side of her face or in her fingers,” prosecutors said.

The attack occurred while the victim had an order of protection against Lockwood after a March 8, 2015, attack, “in which he allegedly assaulted and strangled her,” the district attorney’s office said.

Lockwood also broke the victim’s nose about two weeks before the June 27 attack, prosecutors said.

Nine months after his July 2, 2015, arrest, Lockwood sent the victim a letter “and offered her $20,000 to drop the charges and ‘do the right thing,’ ” prosecutors said.