Receive the latest entertainment-news updates in your inbox

Actor/creator/executive producer Larry David speaks in the "Curb Your Enthusiasm" panel during the HBO Television Critics Association Summer Press Tour at the Beverly Hilton on Wednesday, July 26, 2017, in Beverly Hills, Calif.

Comedian Larry David’s impersonation of Sen. Bernie Sanders on “Saturday Night Live” was so spot on, it looked like the two were related.

Turns out, that might be true, NBC News reported.

Sanders is a "third cousin or something," David told reporters at a Television Critics Association event on Wednesday. David said he learned about the genealogical connection while filming an upcoming episode of the PBS series "Finding Your Roots."

"I was very happy about that," David said, according to Variety. "I thought there must have been some connection."

Sanders even appeared with David in a February 2016 sketch. The "Seinfeld" creator played an aristocratic gentleman on a sinking ship who debates the merits of democratic socialism with the senator's rumpled commoner.

Sanders did not immediately respond to news reports about his family tree.