A man who was convicted of killing an 80-year-old Brooklyn bodega owner after getting denied a 50-cent discount on bottle of beer was sentenced Thursday to 25 years to life in prison.

The Brooklyn Supreme Court judge handed the sentence to Mark Thomas, 43, for the 2017 slaying of 80-year-old Abdulla Yafaee after the victim’s brother requested that he be put to death.

“He was my brother and he killed him,” the Ali Yafaee, 85, said through an Arabic interpreter during a victim impact statement. “[Thomas] should be sentenced for life or be executed.”

“There are no executions here, sir,” Justice Ruth Shillingford gently informed the bereaved brother before hitting Thomas with the harsh sentence.

Thomas was convicted in August of first-degree manslaughter, attempted murder and criminal possession of a weapon for shooting Yafaee in the chest in December 2017.

After a worker at Yafaee’s East New York deli wouldn’t let Thomas plunk down $1.50 for a $2 bottle of Corona, Thomas left the store shouting profanities and racist remarks. He then returned with a handgun and opened fire.

“This case boils down to 50 cents regarding a beer and the death of an 80-year-old man who had nothing … to do with this argument, who happened to be working there,” Shillingford said.

Thomas, who had a lengthy rap sheet going back to 1994 that includes robbery convictions, was expressionless during the sentencing, though he offered a brief apology to Yafaee’s family from the defense table without looking at them directly.

“I apologize to the family, the people I hurt. I apologize,” Thomas said.

Following the sentencing, Thomas’ attorney, David Walensky, said that an “easy access to guns” was to blame for Yafaee’s death and that Thomas would have “had a chance to cool off” had he not been able to quickly pick up a pistol.

While the death penalty is still meted out in federal court, New York’s highest court, the Court of Appeals, ruled in 2004 that the state’s death penalty laws are unconstitutional and the last inmate was taken off death row in 2007.