LOUISVILLE, Ky. (WDRB) -- Just before a Louisville man went on trial for allegedly killing a child, the defendant pleaded guilty.

Johnny Juliot was charged with beating 4-year-old James Hack to death in Dec. 2010.

Police say he was watching his girlfriend's son when the child was taken to the hospital with injuries. He later died.

Today Juliot pleaded guilty to manslaughter, criminal abuse and tampering with evidence. He was sentenced to 15 years behind bars.

Copyright 2013 by WDRB News. All rights reserved.