Will Garner lives! Well, sorta. The Good Wife's Josh Charles is returning to television on Showtime's Masters of Sex.

Charles, who was — spoiler alert! — killed off in the CBS drama's fifth season, will recur in a season-long arc as Daniel, a self-made businessman working in the scent industry. When Daniel tries to create an aphrodisiac by bottling "the smell of sex," he seeks out Masters (Michael Sheen) and Johnson's (Lizzy Caplan) expertise on desire.

Check out this season's MVPs!

"It's been one of the greatest gigs for me in my entire career, but at the end of last year, my contract was up, and I was just ready to kind of move on," the Emmy-nominated actor said following his shocking departure from The Good Wife.

This is Charles' first major TV role since The Good Wife. He has since made appearances on Inside Amy Schumer, including that amazing Friday Night Lights parody, and will appear on Netflix's Wet Hot American Summer limited series this summer.

Masters of Sex returns for Season 3 on Sunday, July 12 at 10/9c on Showtime.

Are you excited for Charles' big return to TV?

(Full disclosure: TVGuide.com is owned by CBS, Showtime's parent company.)