The complex legal tangle surrounding a 5-year-old boy's death ended Friday as the boy's father pleaded guilty to driving under the influence of alcohol in Roanoke County Circuit Court.