Tjaye Heller pleaded guilty Monday to second-degree murder in the 2011 death of a toddler. (Facebook)

A Court of Queen's Bench justice has accepted a guilty plea on a charge of second-degree murder in the July 2011 death of a Medicine Hat toddler.

Tjaye Heller was originally charged with first-degree murder, sexual assault, sexual interference and improperly interfering with human remains. Heller entered a guilty plea Monday morning on the lesser charge of second-degree murder.

Heller will be sentenced on May 30.

He is not related to the child.

While first-degree murder carries an automatic sentence of life in prison with no chance of parole for 25 years, second-degree murder carries an automatic life sentence but with minimum parole eligibility set between 10 and 25 years.

The child, who cannot be named because of a publication ban, was rushed to hospital with traumatic head injuries but was pronounced dead after arriving.