MILLCREEK, Pa. (AP) – A man accused of fatally stabbing his girlfriend amid an impending breakup has been convicted of murder.

James Gilbert was also convicted Wednesday of aggravated assault, reckless endangerment and possession of an instrument of crime by a jury that deliberated for about 90 minutes. The murder count carries a mandatory sentence of life in prison without parole.

READ MORE: 'I Was Terrified:' Woman Recalls Stranger Following Her Car For Miles

Prosecutors say the 25-year-old Gilbert purposely killed 20-year-old Marinda Matasowski at her mother’s Millcreek home in August 2018, stabbing her 27 times with a kitchen knife before he stabbed himself in the chest.

READ MORE: Domestic Incident Inside Of The Mall At Robinson Leads To Chaotic Scene

But his attorney argued that Gilbert didn’t plan the killing and suggested Gilbert may have been on drugs. Gilbert previously said his own mental illness may have contributed to the killing.

MORE NEWS: Mountaineers Become Bowl-Eligible With 34-28 Win Over Kansas

(Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)