Actor Peter Scolari, recently known for his role as Lena Dunham’s father on HBO’s Girls, died on Friday at 66 years old after a two-year battle with cancer.

The news of his death, shared with E! News by his manager, Ellen Lubin Sanitsky, did not specify what type of cancer Peter Scolari had.

In 2016, Peter won an Emmy for his role in Girls as Tad Horvath, Lena Dunham’s father, and he also made appearances on television shows such as Gotham, Murphy Brown, The West Wing, ER, Law & Order: SVU, Ally McBeal, The Love Boat, The Twilight Zone, The King of Queens, Sabrina the Teenage Witch, and Goodtime Girls.

Some of his earliest, breakthrough credits included a 1980s sitcom with Tom Hanks called Bosom Buddies, where the two dressed up as women to get into a women’s-only apartment building. Tom Hanks was unknown at the time.

Peter Scolari also had a role on Newhart, where he played Michael Harris, a TV producer.

Tributes to the actor began to pour in on social media, as fellow actors and friends remembered Peter and celebrated his lengthy career.

“Sad to see the news that Peter Scolari lost his battle with cancer,” said actor Harvey Fierstein on Twitter. “There wasn’t a sweeter man on the planet.”

The two performed together in the 1980s Broadway musical Hairspray, where Harvey Fierstein played a leading role in drag as Edna Turnblad.

“He was always a total delight,” Harvey remembered. “Farewell, dear Peter.”

Peter Scolari worked on many other Broadway productions as well, such as Wicked, Sly Fox, and Lucky Guy, where he co-starred once again alongside Tom Hanks. He also appeared off-Broadway in 2000’s award-winning The Exonerated, which ran for 600 performances.

He and Tom Hanks were reportedly very close throughout their careers following Bosom Buddies. He told Oprah Winfrey in 2014 that Tom Hanks was at his wedding, and he toasted the couple. “He didn’t tease me at all,” Peter recalled. “He said, ‘we should all be a little bit more like him, because he never stops trying. He doesn’t give up.'”

“I cannot get my mind around what I’ve done in my life to deserve this kind of affection,” he said of Tom Hank’s friendship.

Tom Hanks worked with Peter again in the 1996 film That Thing You Do!, which Hanks also wrote and directed. The film was about a one-hit wonder band from the ’60s, where Peter made a cameo as Troy Chesterfield, host of “The Hollywood Television Showcase.”

Robert King, a sitcom writer who worked with Peter Scolari on The Good Fight, said that he was “one of the funniest—sneakily funny—actors we’ve worked with.”

“He always took a nothing scene and found different ways to twist it, and throw in odd pauses that made it jump,” King shared. “He was just wonderful.”

“To watch Peter Scolari’s dailies was a thrill because he always found new ways to go,” he continued. “He molded the highs and lows of a scene, but always looking for the comic spin, and he’d massage a phrase with each take until he could hear the laughter in his head. This is a real loss.”

Love Boat star Jill Whelan said that Peter “was truly generous with his time and talent,” and once taught her to juggle on set when she was just a kid. He “could’ve sat in his trailer, but instead engaged with the only kid on set and I’ll remember that forever,” she recalled.

Peter Scolari is survived by his wife, Tracy Shayne, and his four children: Nicholas, Joseph, Keaton, and Cali.