A 46-year-old Huntsville man will spend five years in prison after he pleaded guilty Wednesday to killing his wife in 2021.