Alabama teacher Carrie Cabri Witt submitted a letter of resignation to the Decatur City Schools Board of Education Monday, more than two years after she was placed on paid leave amid charges she had sex with students.

Witt, a former U.S. government, economics, psychology and history teacher at Decatur High School, collected a total of $142,292 in pay and benefits since former Superintendent Ed Nichols removed her from the classroom in March 2016, the Decatur Daily reports.

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

Her resignation came the day before the school board was set to hold a due process hearing for her termination.

Witt faces two counts of a school employee having sex with a student – a law her attorneys successfully argued in circuit court is unconstitutional. Morgan County Circuit Court Judge Glenn Thompson initially dismissed the charges against Witt and another educator facing the same crime after attorneys convinced him the state law discriminates against teachers, because it prevents them from having sex with students over the age of 16 – the age of consent in Alabama.

The alleged victims in Witt’s case were between the ages of 16 and 19, according to court records.

The state appealed the decision to the Alabama Court of Appeals, which reinstated the charges against Witt in July and remanded the case back to the circuit court, where it currently awaits trial, WHNT reports.

Her attorneys vowed to appeal the Court of Appeals ruling.

Thompson also previously imposed an injunction on Decatur City Schools banning officials from holding Witt’s due process hearing until after her criminal case concluded, but the state Supreme Court overruled the judge, and he lifted the injunction July 11, according to the Decatur Daily.

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

“It is unfortunate that an employment termination hearing is scheduled prior to my case being settled in a court of law. Therefore, it is with much regret that I am forced to submit this request at this time,” Witt, 45, wrote to the school board in her resignation letter.

“I am deeply saddened to resign from a school system that I called my work home for twenty years as a dedicated employee and teacher leader,” she continued. “It is even more upsetting to not have had a voice to defend my character against many unsubstantiated rumors and false accusations.”

She also professed her innocence.

“I vehemently deny having committed any crime or harm against a student, nor have I have (sic) ever had an inappropriate relationship with a student,” Witt wrote.

Witt’s attorneys did not respond to the Daily’s request for comment.

School officials, meanwhile, are “pleased to have been able to bring closure to personnel proceedings involving Carrie Cabri Witt by securing Ms. Witt’s resignation,” according to a prepared statement.

“This resignation negates the necessity of the termination hearing,” board members wrote. “Although legal complications beyond our control delayed resolution of the case, the determination to pursue it to conclusion confirms the Board’s unwavering commitment to ensuring that our faculty and staff adhere to the highest standards of professionalism in their dealings with students.”