Fox canceled Brookyln Nine-Nine yesterday. Then NBC swooped in to save it.

After five seasons, Fox announced that the show was over, much to the regret of fans of Andy Samberg’s cop comedy. Then overnight, NBC announced it had ordered 13 more episodes for Brooklyn Nine-Nine’s sixth season.

“Ever since we sold this show to Fox, I’ve regretted letting it get away,” said Robert Greenblatt, chairman of NBC Entertainment. “It’s high time it came back to its rightful home.” Universal Television, the TV production subsidiary of NBCUniversal, is one of the show’s producers.

Writer Michael Schur, better known to sports fans as Ken Tremendous from the blog Fire Joe Morgan, said NBC came to the rescue because the show’s many fans loudly voiced their despair after Fox tossed Brooklyn Nine-Nine. The cancellation was among several Fox made in a programming course change related to the network’s sale to Disney.

This happened because the fans of the show went berzerk. We can't thank you -- or @NBC -- enough. #Brooklyn99 — Ken Tremendous (@KenTremendous) May 12, 2018

Dan Goor, the other showrunner (and Schur’s college roommate) likewise tipped his cap to fans for saving the series.

Hey everyone, just wanted to say no big deal but....

NBC JUST PICKED #BROOKLYN99 UP FOR SEASON 6!!!

Thanks in no small part to you, the best fans in the history of the world!



Nine-nine!!!!!!!!! — Dan Goor (@djgoor) May 12, 2018

Brooklyn Nine-Nine has been on TV since 2013. It won two Golden Globe awards in 2014, for Samberg as best actor in a TV comedy or musical, and best series, comedy or musical. The show, which also stars Stephanie Beatriz, Terry Crews and Melissa Fumero, follows the mishaps of the New York Police Department’s fictitious 99th precinct in Brooklyn.