A Catholic high school in Indianapolis said it fired a teacher in a same-sex marriage on Sunday to protect its “Catholic identity” after it received an order to do so from the archbishop. The move came one week after the archdiocese cut ties with another school in Indianapolis that had refused a similar command.

The school that fired its teacher, Cathedral High School, was the third Catholic high school in the Archdiocese of Indianapolis to receive such an order in the last year, a lawyer for the teacher said . The school said in a letter to the community that it fired the teacher, whom it did not name, after “direct guidance” from Archbishop Charles C. Thompson.

The school said it had been engaged in almost two years of “earnest discussion and extensive dialogue” with the archdiocese about the school’s “continued Catholic identity.” The teacher’s lawyer, Kathleen A. DeLaney , said his employment contract was renewed at least twice during that time.

“It is Archbishop Thompson’s responsibility to oversee faith and morals as related to Catholic identity within the Archdiocese of Indianapolis,” the school said in its letter. “Archbishop Thompson made it clear that Cathedral’s continued employment of a teacher in a public, same-sex marriage would result in our forfeiting our Catholic identity due to our employment of an individual living in contradiction to Catholic teaching on marriage.”