A South Carolina man arrested for running over his girlfriend Sunday told authorities he “had to do it.”

Corey Bryce Adams, 27, of Dorchester, said he hit his 22-year-old girlfriend with his car Sunday night because she supposedly cheated on him, news station WCIV reported.

Deputies said the woman had been walking in a Publix parking lot around 11 p.m. when a car struck her from behind.

Emergency responders arrived to find her “bleeding profusely” and suffering from a head injury. She said she could not remember what happened.

There were pieces of plastic that were apparently from the headlight left at the scene after the crash. From the evidence, police determined the vehicle was a white Ford Focus.

Deputies tracked down Adams at his home, where his Ford Focus with a busted headlight was parked in the driveway.

According to authorities, he initially locked himself inside the house and threatened suicide.

Eventually, he turned himself over to police and was charged with attempted murder.

His mom told investigators he returned home after the alleged accident and told her that he “ran over his girlfriend” and “had to do it because she cheated on him.”

Adams was taken into custody at Dorchester County Jail, where he is being held on $100,000 bond.