Can a religious school fire a gay teacher? It's complicated.

Lynn Starkey worked at Roncalli High School in Indianapolis for nearly 40 years. In May, however, the Roman Catholic school fired Starkey as a guidance counselor after officials discovered that she is married to a woman.

In July, Starkey, 63, sued the school and the Archdiocese of Indianapolis, claiming, in part, that they discriminated against her on the basis of her sexual orientation.

Lynn Starkey is suing a Roman Catholic high school and the Archdiocese of Indianapolis after she was fired as a guidance counselor because she is married to a woman. Delaney and Delaney LLC

In May, the school’s principal notified Starkey, who has been married to her spouse since 2015, that her contract would not be renewed, stating in a letter that civil unions are in violation of her contract and “contrary to the teaching of the Catholic Church.”

The archdiocese — which is also being sued by a gay teacher who was recently fired from a different Catholic school in Indianapolis — claims that it has a “constitutional right to hire leaders who support the schools’ religious mission.”

“Catholic schools exist to communicate the Catholic faith to the next generation,” the archdiocese said in a statement sent to NBC News. “To accomplish their mission, Catholic schools ask all teachers, administrators and guidance counselors to uphold the Catholic faith by word and action, both inside and outside the classroom.”

The issue of gay educators being fired by or excluded from employment at religious schools is not new, and since 2014, several cases have come before the courts. It’s also not unique to Indianapolis or Catholic institutions. In January, Karen Pence, the vice president’s wife, said she would return to teaching at a Christian school at Virginia that refuses to hire LGBTQ employees or to educate LGBTQ students.

So, is this legal? While the majority of Americans across all religious groups support employment nondiscrimination protections for LGBTQ people, according to a recently released PRRI public opinion poll, the law is less straightforward.

“The law is in flux,” said Jenny Pizer, law and policy director for Lambda Legal, an LGBTQ civil rights organization. “There are some principles we are sure of and some that are still being developed and sorted out in the courts and state and federal legislatures.”

In order to understand the rights of lesbian, gay, bisexual, transgender and queer workers employed by religious organizations, one must consider both federal and state law, the Constitution and executive orders.

Federal Law

Title VII of the 1964 Civil Rights Act prohibits employers from discriminating on the basis of race, color, religion, sex and national origin. However, it contains “multiple overlapping exemptions” when it comes to religion, according to Marcia McCormick, a professor of law and gender studies at Saint Louis University.

For one, any employer can discriminate on the basis of religion if religion is considered necessary for the exercise of the job, McCormick explained. For example, a Kosher butcher shop may want to hire only Jewish butchers.

source: nbcnews.com