A 17-year-old student who was kicked out of his private Christian high school for being transgender has been crowned homecoming king at his new school.

Stiles Zuschlag, of Lebanon, Maine, took the crown Friday at Noble High School’s homecoming game — just one month after transferring to the public school, according to HuffPost.

“Definitely your homecoming king,” Zuschlag tweeted along with a photo of him wearing the crown.

Zuschlag, who had attended Tri-City Christian Academy in Somersworth, New Hampshire, since kindergarten, came out as transgender in 2015.

Zuschlag hoped to be this year’s class valedictorian until a meeting in August with the school’s administrator, Paul Edgar, during which they discussed his desire to be called Stiles instead of Alija.

Edgar told the teen he was “going down the wrong path” and would either have to stop taking testosterone and confess his sins or leave campus. His options were limited to being homeschooled while undergoing Christian counseling or transferring to a new school, Seacoast Online reported.

Zuschlag decided to transfer to Noble High School in North Berwick, Maine, where he already knew a few other students. Still, he never expected to be in the running for homecoming king.

“I asked on Snapchat as a joke to put me in and people actually did it. I didn’t really expect them to. I still can’t believe they did that for me,” Zuschlag told The Post in an email.

“After I won at the homecoming game, I almost started crying. My friends all put me in, people I didn’t even know put me in, everyone voted for me on the final ballot,” he added.

Zuschlag says he feels like getting kicked out of his private Christian school — where he felt “degraded” — was a blessing.

“God forced me out of that situation, that school, knowing that my mental health was far more important than my education,” he said.

“The only reason I stayed at the school for so long was for my education, for my GPA and to just learn about God. But I was also dying there mentally and I suffered a lot,” he said, adding he feels like he can “breathe again.”

Zuschlag is not the public high school’s first transgender student.

“We want all students to feel like they belong here at Noble High School,” school counselor Nancy Simard, told WCSH-6.