The pastor of a California church who officiated at Justin Bieber’s 2015 wedding says he should resign after getting caught on tape bragging about his sex life.

Former Pastor Carl Lentz of the Christian congregation Hillsong appeared Tuesday on the Dr. Phil show and said he did not use the word “sex” when he described how he slept with dozens of women while he was their pastor.

“I never had a sexual relationship with anyone in my life, period,” Lentz, 42, said. “If there’s something wrong here, then I’m sorry. I don’t want to have this happen again to anyone.”

Calls to Lentz’s attorney to offer him an apology and a reprimand for lying were not immediately returned.

There has been a photo circulating online that shows Lentz dressed as an elf. Church officials described it as a prank.

Lentz said there is no ongoing sexual misconduct investigation against him. He would not confirm that last year’s Real Housewives of New York City cast member Bethenny Frankel, who Lentz was married to, was one of the women.

“I’m not going to say who,” Lentz said. “I’m going to say I’m not going to say it’s this, or I’m not going to say it’s this.”

Frankel reached a confidential settlement with Hillsong in 2013, her spokesman said.

Lentz said he doesn’t feel too bad for a woman who didn’t get to her dream wedding because people only know about his so-called sex life.

“They may find that hard to believe that I had sex with an average of 120 women a year — but that’s the level I had a dinner party with over 100 women all over the world,” Lentz said.

Bieber — born Justin Webber — and his longtime girlfriend, Hailey Baldwin, married in May 2015 in front of 80,000 people at the Rainbow Room in L.A.

Lentz said there is nothing to be ashamed of, but he should step down.

“I believe the right thing for me to do is step aside and let these principles of truth come back in,” Lentz said. “I feel like I need to tell people it’s not true. It’s just not true, and it’s okay to believe it is.”

Hillsong issued a statement Friday in response to a New York Times story in which it said there is no sexual misconduct investigation against Lentz. The church also said it believes that Lentz was raised a Christian and wishes him well.