FARGO, N.D. — A Minnesota man has been sentenced to 35 years in prison for a fatal drive-by shooting in Fargo.

Miguel Cooley, 45, earlier pleaded guilty to intentional homicide in Cass County Circuit Court.

Cooley killed 20-year-old Gabriel Perez as the victim sat on a curb outside a McDonald's restaurant in September 2018.

Court records say investigators believed Cooley was jealous over a relationship his wife had with Perez.

Cooley, from Moorhead, was arrested the day after the shooting in Mower County, Minnesota.

The judge, in sentencing Cooley Monday, went along with the recommendation of both the prosecution and defense. Cooley must also serve 10 years of supervised probation.

He faced a maximum possible sentence of life in prison without the chance of parole.