A Charleston man who fatally beat his mother's ex-boyfriend was found guilty of murder and sentenced to 40 years in prison Wednesday.

Robert Wright, 43, attacked Christopher Jenkins, 46, on Aiken Street around sunset June 10, 2010. Jenkins was walking to a neighborhood store with two young nephews and their friend when he was attacked from behind, slammed to the pavement, beaten and stomped. He died the next day from blood loss due to 10 broken ribs, according to a forensic pathologist.

Wright attacked Jenkins because he was offended that Jenkins continued to contact his mother after they broke off their romantic relationship, according to the prosecution.

This was the second time the case had gone to trial. A mistrial was declared in 2012 when a jury failed to reach a verdict.

"It was clear from the evidence that Christopher Jenkins died as a result of a violent, malicious attack, and I'm happy this jury correctly applied the law of this state and convicted Mr. Wright accordingly," Assistant 9th Circuit Solicitor Chad Simpson said in a statement.

Wright had previous criminal convictions for domestic violence, resisting arrest and cocaine possession, as well as pending charges for domestic violence and domestic violence of a high and aggravated nature, according to the solicitor's office.

Judge Kristi Harrington handed down the sentence. Simpson and Assistant Solicitor Jessica Baldwin prosecuted.

Reach Dave Munday at 937-5553.