A 33-year-old man was sentenced to 60 years in prison this week for trying to kill his ex-wife and her new boyfriend during a gathering at the woman’s Hurst home.

Lenar “Alex” Corales lay in wait on the night of April 28 before ambushing and shooting Alicia King and Victor Perez multiple times, including in the head, after the couple walked outside the house in the 700 block of Thousand Oaks Drive, according to a news release from the Tarrant County district attorney’s office.

Perez’s 7-year-old son witnessed the shooting. King’s children were inside.

King, who almost died on the operating table at John Peter Smith Hospital but was resuscitated, suffered a shattered skull, a punctured lung, a broken clavicle and two broken ribs. She required several surgeries.

Perez, shot in the back and the head, also survived.

A Tarrant County jury found Corales guilty of attempted capital murder Thursday afternoon after deliberating just two minutes, the release said.

He was sentenced by the jury Friday morning and must serve 30 years before becoming eligible for parole.

Abe Factor, Corales’ attorney, could not be reached for comment. Corales has appealed, court records show.

Prosecutors Rhett Parham and Keith Harris contended during the trial that Corales was angry with King because she no longer wanted anything to do with him. He bought the gun three weeks before the shooting, hoping for an opportunity to kill her and her boyfriend, the release says.

During the punishment phase, jurors learned that King divorced Corales in 2010 after he drove drunk with their three children. She let him move back in temporarily to help care for the children while she tended to her terminally ill mother, but she ordered him to leave again after discovering that he had secretly recorded her in the bathroom, the release said.

Corales then began harassing and stalking King.

“The jury’s verdict in this case sends a significant message to this defendant and to the community as a whole that we take domestic violence extremely serious in Tarrant County,” Parham said.

“We hope the verdict helps bring the King and Perez families closure from this heinous crime.”