A biology professor who was fired from a Texas community college for teaching students that X and Y chromosomes determine sex has been reinstated.

First Liberty Institute, a law firm that defends religious liberty for Americans, announced in a Tuesday press release that St. Philip's College in San Antonio, Texas, had reinstated Dr. Johnson Varkey, a former adjunct professor, a year after he was terminated.

The law firm noted they had filed a charge of discrimination at the U.S. Equal Employment Opportunity Commission against St. Philip's and the Alamo Community College District (ACCD) earlier this year.

"We are happy that the Alamo Community College District voluntarily reinstated Dr. Varkey," Kayla Toney, Associate Counsel for First Liberty Institute, said. "He is excited by this outcome, and we are glad that ACCD did the right thing. Dr. Varkey looks forward to continuing to educate students at ACCD."

HARVARD PROFESSOR SAYS ‘ALL HELL BROKE LOOSE’ WHEN HIS STUDY FOUND NO RACIAL BIAS IN POLICE SHOOTINGS

Dr. Johnson Varkey reinstated in Texas

First Liberty Institute announced in a Tuesday press release that St. Philip’s College had reinstated Dr. Johnson Varkey. (iStock/First Liberty)

First Liberty revealed the parties had reached a "favorable settlement," which, "among other provisions," guarantees that Varkey will be back in the classroom teaching by fall 2024.

The law firm previously sent a letter to St. Philip's College on behalf of Varkey, demanding the institution reinstate him after he was fired in January 2023.

"When teaching the human reproductive system, Dr. Varkey also stated that human sex is determined by chromosomes X and Y, and that reproduction must occur between a male and a female to continue the human species," First Liberty stated last June. "In the course of teaching Human Anatomy and Physiology, he made these statements in every class for 20 years, without any incident or complaint."

Complaints against Varkey that ultimately led to his firing said he had engaged in "religious preaching, discriminatory comments about homosexuals and transgender individuals, anti-abortion rhetoric, and misogynistic banter" and that his teaching "pushed beyond the bounds of academic freedom with [his] personal opinions that were offensive to many individuals in the classroom," according to a letter from the law firm.

PROFESSOR SAYS HE WAS FIRED FOR REFUSING TO INFLATE GRADES: 'TOTALLY AGAINST WHAT I WAS SUPPOSED TO DO'

biology arizona peoria textbook woke curriculum school board member

Four students walked out of Varkey's class after he stated sex was determined by X and Y chromosomes.  (BSIP/UIG Via Getty Images)

On November 28, 2022, four of Varkey's students walked out of his class when he stated that sex was determined by X and Y chromosomes, just as he had done dozens of times before.

First Liberty argued his teachings are supported by his education and experience in his field, as well as his religious beliefs, but "throughout his employment, he never discussed with any student his personal views—religious or otherwise—on human gender or sexuality."

As an adjunct professor, Varkey taught Human Anatomy and Physiology at St. Philip's College to more than 1,500 students for 22 years, where he taught the same principles he was fired for this year, according to First Liberty.

CLICK HERE TO GET THE FOX NEWS APP

First Liberty, at the time, said the college participated in unlawful religious discrimination in employment under the First Amendment and Title VII of the Civil Rights Act of 1964, arguing Varkey "believes that he is obligated as a Christian and as a professor to teach accurate, true concepts that comport with his many years of research and study in the field of human biology."

Several members of Congress weighed in after the lawsuit was filed and called for Varkey to be reinstated.

St. Philip's College did not return Fox News Digital's request for comment.

Fox News' Kendall Tietz contributed to this report.