GULF SHORES, Ala. – The criminal case against a former Alabama coach and teacher may fall to pieces after the alleged perpetrator married his student victim over the weekend.

Matthew Wester, 37, married his former student, Amy Cox, 18, as his criminal case pends in the courts. Wester resigned as coach and math teacher at Cleveland High School after he was placed on paid leave in November 2014 amid rumors of an illegal sexual relationship with Cox, a senior at the time, AL.com reports.

MORE NEWS: Know These Before Moving From Cyprus To The UK

Blount County District Attorney Pamela Casey told the news site the recent nuptials complicates Wester’s criminal case, though how exactly is unclear.

“I was provided a marriage license this morning out of Cullman County, which confirmed that they were married Saturday in Gulf Shores,” Casey said. “The charges currently pending against Mr. Wester stem from an investigation of his relationship with the victim while she was a student and he was a teacher.

“Now that the legal status of their relationship has changed, we will have to look at our case to determine how we will proceed,” she said.

Casey added that spouses cannot be forced to testify against each other under Alabama law.

Wester taught high school algebra and geometry, and served as assistant varsity football coach and head track coach when he “intentionally and knowingly engaged with a male or female student under the age of 19 in sexual contact which was done for the purpose of gratifying the sexual desire of either party, to wit – kissing and spending the night with the victim,” according to a January grand jury indictment.

WIAT reports Wester was married with a child when the incident allegedly occurred, but divorced in April. Wester’s ex-wife was awarded custody of their child.

MORE NEWS: How to prepare for face-to-face classes

Matthew and Amy Wester posted a picture together to Instagram over the weekend with the message “Happily Married,” along with a heart-eyed happy face.

The wedding certainly isn’t the first time a teacher has wed their student victim.

Former North Carolina teacher Leah Gayle Shipman was 42 when she was arrested in 2009 for taking indecent liberties with a 15-year-old student, and was fired from Brunswick County Academy. Shipman divorced her husband of 19 years in 2011 then married her victim, Johnnie Ison, six days later, according to the Huffington Post.

The boy’s mother gave permission for the marriage, because he was a minor at the time, and prosecutors settled for a resisting arrest conviction.

The most famous case, however, is Mary Kay Letourneau, who was convicted of molesting sixth-grade student Vili Fualaau after her then-husband found a love letter she wrote the student.

Letourneau became pregnant with Fualaau’s child when he was just 13, and served a three-month jail sentence for her rape conviction, but was caught having sex with Fualaau upon her release and sentenced to an additional 7 and a half years in prison, the Daily Mail reports.

Letourneau gave birth to her first child while incarcerated, as well as a second child during her longer stay, while Fualaau was left to raise the children. Letourneau was released from prison in 2004 and the two wed at a Washington winery a year later, when she was 43 and he was 22, according to the news site.

The two are now raising two teenage daughters in Normandy Park, Washington.