Robert A. Sundberg III, a fired Massachusetts State Police trooper convicted of raping his former girlfriend, a fellow state police trooper, was sentenced to 10-to-15 years in prison Tuesday in Lowell Superior court, officials said.

Judge Heidi Brieger also sentenced Sundberg, 48, to three years probation. He was ordered to consume no drugs or alcohol, to stay away from and have no contact with the victim, to complete a certified batterers program, to undergo a mental health evaluation and to register as a sex offender and other conditions.

The former 14-year veteran of the department was fired after a jury found him guilty last week of two counts of rape, strangulation, stalking, assault with intent to rape, five counts of assault and battery on a household or family member, three counts of assault and battery and malicious damage of a motor vehicle.

Authorities said Sundberg, who is now living in Framingham, attacked the victim in his former Boxborough home in April 2016. The woman told investigators Sundberg had a long history of sexual and physical abuse.

Sundberg and the victim began dating in 2010, according to a statement from the office of Middlesex District Attorney Marian Ryan.

“In the years that followed the defendant would routinely monitor the victim’s phone and consistently questioned her communications with others," the statement read. "The defendant on multiple occasions became angry at the victim and physically assaulted her by punching, kicking and strangling her. The defendant also used physical force to coerce the victim into engaging in non-consensual sexual acts.”

On April 22, 2016, Sundberg was out with friends when he became convinced the victim was contacting a male friend of his, Ryan’s office said.

When Sundberg returned to Boxborough, his then-girlfriend was sleeping. Sundberg strangled the victim until she started to lose consciousness and attempted to rape her, according to the statement. The woman later snuck out of the residence and tried to conceal the injuries inflicted on her.

The victim reported Sundberg’s actions to a supervisor, resulting in Sundberg’s arrest.

An investigation resulted in charges against Sundberg in connection with six incidents of domestic abuse in addition to the April 2016 charges, Ryan’s office said. Sundberg was indicted by a Middlesex Superior Court Grand Jury in June 2016.

Sundberg was suspended without pay after state police learned about the attack. He was fired after he was found guilty and sentenced.

“We have absolutely no tolerance for domestic violence, and hope this case makes clear that any such allegations will be swiftly and decisively investigated,” a state police spokesman said after Sundberg’s conviction.