UPPER MARLBORO, Md. (WJZ) — A Capitol Heights man was sentenced to 30 years in prison on Friday for attempting to murder his girlfriend.

Corey Balam, 41, pled guilty to attempted second-degree murder, second-degree assault and use of a firearm in a crime of violence.

READ MORE: Firefighters Battle Two-Alarm Fire Amid Thunderstorm In Baltimore's Riverside Neighborhood

According to court documents, Balam repeatedly punched his girlfriend in the face after the two got into an argument. He then dragged her into a closet, put a pillow over her head and shot her in the back of the head.

READ MORE: Fourth Of July Fireworks Return To Baltimore's Inner Harbor

The victim survived.

As part of the sentence, Balam will be on supervised probation for five years and must register on the gun registry.

MORE NEWS: Maryland Comptroller Franchot Tests Positive For COVID-19