A man convicted of child abuse and other charges stemming from the 2016 death and dismemberment of an Albuquerque girl was sentenced to 37 1/2 years in prison Thursday.

Prosecutors had sought a maximum sentence of 40 years for Fabian Gonzales. State District Judge Cindy Leos combined two of the tampering with evidence counts that related to the removal of the victim's body parts, thus resulting in a slightly shorter prison term.

During trial earlier this year, prosecutors said that although Gonzales didn’t kill Victoria Martens, he set in motion events that created a dangerous environment that led to the girl's death.

NM JUDGE PUTS NEW RESTRICTIONS ON STATE CIVIL GUARD

Martens’ death — on her 10th birthday — sent shockwaves through the community.

The girl’s mother, Michelle Martens, will be sentenced for her role in the coming weeks. Gonzales was dating the woman and had moved into the apartment where she was living with her daughter.

New Mexico new

A man who was involved in the death of Victoria Martens has received 37 ½ years in prison for child abuse.

According to investigators, Gonzales had allowed his cousin, Jessica Kelley, to stay at the apartment shortly after Kelley was released from prison. Investigators determined that Martens and Gonzales were not at the home when Victoria was killed but that Kelley was there.

NEW MEXICO, TEXAS, COLORADO PROPOSE SETTLEMENT OVER RIO GRANDE MANAGEMENT

Prosecutors said Victoria was killed either by an unknown man or by Kelley, who was using methamphetamine and acting paranoid that day. Gonzales’ attorneys had argued that Kelley killed the girl and then tried to cover it up.

The case remains open and authorities are looking for an unidentified man based on DNA evidence that was found.

CLICK HERE TO GET THE FOX NEWS APP

Kelley, who earlier pleaded guilty to child abuse and other charges, was sentenced to 44 years in prison and will be eligible for parole in half that time. Michelle Martens pleaded guilty to a child abuse charge in an agreement that calls for her to be sentenced to 12 to 15 years in prison. Her sentencing has been postponed to Nov. 10.