It’s the end of the road at Fox for Brooklyn Nine-Nine, the network’s cult cop comedy starring Andy Samberg and Andre Braugher, which was the only remaining Fox comedy series from an outside studio, Universal TV.

Brooklyn Nine-Nine also was the highest-rated live-action comedy series on Fox this season with a 1.3 adults 18-49 Live+7 rating, edging LA to Vegas, The Last Man On Earth and The Mick (all at 1.2). Negotiations with Universal TV went down to the wire last year, with the comedy able to clinch a Season 4 renewal. It didn’t happen this time.

The network today also canceled The Last Man on Earth and The Mick.

Fox

Brooklyn Nine-Nine debuted to decent ratings in September 2013, then quickly scored a Season 2 renewal and a post-Super Bowl slot for its freshman run which also garnered two Golden Globe awards — for Best TV Series – Comedy or Musical and best actor in a comedy for SNL vet and Lonely Islander Samberg.

Related Story 'Brooklyn Nine-Nine' May Find New Home; Hulu, Others Eye Fox Comedy Amid Massive Outpouring After Cancellation

Brooklyn Nine-Nine never drew wide audiences, with its ratings performance hampered by the constant scheduling moves between Sunday, where it always did well, and Tuesday. After a lengthy winter break, the show returned to its old 8:30 PM Sunday slot this spring as a midseason replacement for freshman comedy Ghosted, improving the time slot.

Created by the Parks and Recreation duo of Dan Goor and Michael Schur, Brooklyn Nine-Nine centered on Det. Jake Peralta (Samberg), a screwball who happens to be a real good cop. His captain in the NYPD’s 99th Precinct is Raymond Holt, a seen-it-all and emotion-challenged captain played by Braugher, who scored three consecutive Emmy noms for Supporting Actor from 2014-16. Terry Crews, Melissa Fumero, Joe Lo Truglio, Stephanie Beatriz, Chelsea Peretti, Joel McKinnon Miller and Dirk Blocker also star.

Brooklyn Nine-Nine, which cuffed a TBS syndication deal in December, is produced by Universal Television, Fremulon, Dr. Goor Productions and 3 Arts Entertainment. The series was created by the Parks and Recreation duo of Dan Goor and Michael Schur, who executive produce alongside David Miner and Luke Del Tredici.