An Anaheim man was sentenced Friday to 50 years to life in prison for shooting his estranged wife to death outside a pre-school in the Turtle Rock area of Irvine, the Orange County district attorney's office announced.

A jury previously convicted John Rand Agosta, 37, of following Alejandra Hernandez, 28, to the school where she worked and waiting outside with a gun.

When she left work for lunch on June 16, 2011, Agosta tailed Hernandez about half a mile until she got out of the car in a cul-de-sac.

Agosta then shot her nine times in the chest, returned to his Ford Mustang and tried to drive off, but he couldn't start the car.

He ran after returning to the body and turning it over with his foot, according to the D.A.

Hernandez was pronounced dead at the scene, and Irvine police arrested Agosta at a friend's house in Mission Viejo hours after the murder.

In June, a jury found Agosta guilty of one felony count of murder and a sentencing enhancement for the personal discharge of a firearm causing death.

An aunt and two sisters of Hernandez spoke at Friday's sentencing. According to a news release from the D.A., "each described the victim as a person of peace and forgiveness."

— Jeremiah Dobruck

Twitter: @jeremiahdobruck