A Queens public school assistant principal has been arrested on federal charges over accusations he had a lucrative side hustle pimping out a California-based online porn star, officials said Tuesday.

Bond Ng, 47, was arrested on Sunday and charged with enticing a person to travel in interstate commerce to engage in prostitution, federal officials said. Ng is an assistant principal at P.S. 16 in Corona, Queens, a law enforcement source said.

He’s accused of reaching out to fans of the porn star, who lives in Los Angeles and is not named in court papers, and offering them a chance to have sex with her for $2,000 an hour.

Fans were charged $500 more if they wanted to perform anal sex or have sex without a condom, according to the complaint filed in Brooklyn Federal Court.

The porn star prostitute is not a minor and did not appear to be threatened or coerced into having sex with her fans, sources said.

Federal prosecutors said Ng often pretended to be the porn star when communicating with her fans to set up trysts.

He accepted payments through his Zelle account and would then reach out to the porn star with the list of clients as well as the dates and sexual activities promised.

He’d also set the porn star up in hotels in New York, and sometimes even in his own apartment in Long Island City.

P.S. 16 in Corona, Queens. (Susana Bates for New York Daily News)P.S. 16 in Corona, Queens. (Susana Bates for New York Daily News)

The case against Ng was broke wide open on Feb. 20 when he was flagged for a second inspection at JFK Airport as he returned to the U.S. from Cartagena, Colombia.

During the inspection, Homeland Security officers recovered two cellphones from Ng which had damning text messages between himself, the porn star and the porn star’s clients.

A case was put together after sifting through the texts, which included conversations with the porn star in which Ng encouraged her to travel to New York to have sex for money with fans.

The woman was hesitant, but not because of the sex.

“The weather is soooo bad,” the porn star told Ng on Dec. 27, referring to a winter storm that was expected to arrive.

Before a trip to New York on the last week of December, Ng bought the porn star a winter coat, the text messages reveal.

Ng was arrested on Sunday and freed on $150,000 bond.

A city Department of Education spokesperson declined comment, referring a reporter to the feds.