MINNEAPOLIS (WCCO) — A St. Paul man has been sentenced to 30 years in prison for raping a teenager in 2007 and his ex-girlfriend in 2011.

Courtney Lamont Osgood, 21, received the maximum penalty for both rapes, after pleading guilty to charges in April.

READ MORE: Shoplifter Shoots St. Paul Liquor Store Worker Twice, Police Say

According to the 2011 complaint, police responded to an assault call on the 300 block of Concord Street in St. Paul. An 18-year-old victim told them she was raped and strangled earlier that morning in the laundry room of her apartment building.

Police learned that Osgood became upset with the woman after she tried to end their relationship. Two weeks later, investigators obtained a warrant for a DNA sample from Osgood, who at the time was in custody for a traffic violation.

READ MORE: Minnesota Weather: Next Dose Of Snow Could Make For Commute Headaches

In September of 2011, the Minnesota Bureau of Criminal Apprehension confirmed a match to not only the 2011 rape but a rape from 2007, on St. Paul’s east side.

Investigators say in that case, a 13-year-old victim was walking to school on Jan. 8, 2007 when a man grabbed her from behind, strangled and raped her. He left her face down and unconscious in an alley, according to the report.

MORE NEWS: Archambault Lifts Coyotes Over Tommies 90-79

Ramsey County Attorney John Choi applauded the efforts of police, the BCA and the prosecution team for bringing Osgood to justice.