Nick D’Agosto has landed the sought-after lead role in The Trail, NBC’s documentary-style procedural comedy from comedy veteran Jeff Astrof, Forever creator Matt Miller and Warner Bros. TV.

NBC Logo NewWritten by Astrof and Miller and to be directed by Jeffrey Blitz, The Trail, whose title is a scrambled version of Trial, follows Josh Simon (D’Agosto), a young big-city lawyer and his oddball defense team during a high-profile murder trial in a small southern town. Sent from his big New York law firm to small town South Carolina to prep a rag-tag team in defending a poetry professor (John Lithgow) accused of murdering his wife, Josh Simon tries to keep his optimism while feeling a bit out of his element — both professionally and as the first “Northeasterner” many of the townspeople have seen.

D’Agosto  joins previously cast Lithgow, Sherri Shepherd, Jayma Mays and Steven Boyer.

D’Agosto will film the NBC pilot as he wraps his season-long arc on Fox’s Gotham, also at Warner Bros. TV. He previously did a season-long arc on Showtime’s Masters of Sex. D’Agosto is repped by UTA and Emerald Talent Group.