Michael Anthony Longoria, 24, of Lubbock went on trial this week for aggravated sexual assault, however, during the trial he decided take a plea deal.
Longoria agreed to a 20-year prison sentence. He will get nearly two years of jail credit and he can request parole after half of his sentence is served.
Lubbock Police said in January of 2017, officers were called early in the morning to the 1600 block of Iola Avenue.
Officers were told that Longoria hit the victim multiple times.
A young child was also struck, police said. Officers were then told that Longoria sexually assaulted the victim.
Police said Longoria and the victim knew each other. A protective order in the criminal case categorized the situation as family violence.
Longoria was arrested on the date of the incident and has been in the Lubbock County Detention Center since that time.