August 11, 2022 | 7:39am

The overwhelming success of “Friends” is all thanks to Jerry Seinfeld … according to him.

Actress Lisa Kudrow, who plays Phoebe Buffay in the popular 90s sitcom, revealed an unlikely run-in she had with the comedian who didn’t shy away from telling her he had something to do with the show’s triumph.

During a party in the 90s that the pair both attended, Seinfeld boasted that his own show’s popularity had a knock-on effect in making “Friends” climb up the ranks.

“I remember going to some party and Jerry Seinfeld was there, and I said, ‘Hi,’ and he said, ‘You’re welcome,'” Kudrow, 59, told The Daily Beast. “I said, ‘Why, thank you … what?'”

“You’re on after us in the summer, and you’re welcome,” he added, before Kudrow said, “That’s exactly right. Thank you.”

Lisa Kudrow dished on her unlikely encounter with Jerry Seinfeld in the 90s.Lisa Kudrow dished on her unlikely encounter with Jerry Seinfeld in the 90s.FilmMagic "Friends" starred Kudrow, Jennifer Aniston, Courteney Cox, David Schwimmer, Matt LeBlanc, and Matthew Perry.“Friends” starred Kudrow, Jennifer Aniston, Courteney Cox, David Schwimmer, Matt LeBlanc, and Matthew Perry.Getty Images

It seems as though Seinfeld’s words had a lasting effect on Kudrow, who agrees that “Seinfeld” might have had something to do with boosting the viewership of “Friends,” which aired from 1994 to 2004.

“Not to take anything away from the writing on Friends, or the cast, or how good Friends really was, but the first season our ratings were just fine,” Kudrow added.

"Seinfeld" ran from 1989 until 1998.“Seinfeld” ran from 1989 until 1998.Getty Images

“Friends” also starred Jennifer Aniston, Courteney Cox, David Schwimmer, Matt LeBlanc, and Matthew Perry as twenty-somethings struggling with life and love in New York City.

Meanwhile, “Seinfeld” features the comedian portraying a fictionalized version of himself, and focuses on his personal life with three of his eccentric friends George, Elaine, and Kramer, played by Jason Alexander, Julia Louis-Dreyfus, and Michael Richards, respectively. It ran from 1989 until 1998.