Sam Lloyd, an American character actor, a capella singer, and musician has died after battling cancer at the age of 56.

He was best known for his role as a lawyer Ted Buckland on the American comedy-drama Scrubs for 95 episodes. He also appeared in Cougar Town, Seinfeld, and The West Wing.

Lloyd’s agent confirmed the news of his death to Deadline.

Last year, the actor was diagnosed with an inoperable brain tumor, which was later revealed that it was metastatic lung cancer. Cancer spread to his liver, spine, and jawbone.

Lloyd was diagnosed just a week after his wife, Vanessa, gave birth to their first child, son Weston.

His father Sam Lloyd III was also an actor. He was the nephew of Christopher Lloyd, who appeared in the Back to the Future.

Lloyd appeared in dozens of movies and TV, but he was best known for his character in Scrubs, appearing in 95 episodes during its nine-season run on NBC and ABC.

He last appeared on the show in the Season 9 episode “Our Histories,” which saw Ted leaving New Sacred Heart. He later reprised the role on a Season 3 episode of Cougar Town.

Lloyd also played the bass guitar in The Beatles tribute group The Butties.

Scrubs creator Bill Lawrence paid tribute to Lloyd on Twitter. He wrote, “Thinking a lot about Sam Lloyd today. (Ted). Truly such a kind, sweet guy. He will be missed by so many.”

Scrubs star Zach Braff also paid tribute to Lloyd on Twitter. He wrote, “Rest In Peace to one of the funniest actors I’ve ever had the joy of working with. Sam Lloyd made me crack up and break character every single time we did a scene together. He could not have been a kinder man. I will forever cherish the time I had with you, Sammy.”

Born on November 12, 1963, in Weston, Vermont, Lloyd attended Syracuse University.