Andy Samberg, Joe Lo Truglio and guest star Jason Mantzoukas in the "Gray Star Mutual" episode of "Brooklyn Nine-Nine."
PHOTO: Fox
Andy Samberg, Joe Lo Truglio and guest star Jason Mantzoukas in the "Gray Star Mutual" episode of "Brooklyn Nine-Nine."
Now playing
01:00
'Brooklyn Nine-Nine' saved by NBC
Producer Ellen DeGeneres attends Netflix
PHOTO: VALERIE MACON/AFP/AFP via Getty Images
Producer Ellen DeGeneres attends Netflix's season 1 premiere of "Green Eggs and Ham" at Hollywood Post 43 on November 3, 2019 in Hollywood, California. (Photo by VALERIE MACON / AFP) (Photo by VALERIE MACON/AFP via Getty Images)
Now playing
02:19
The long, and now controversial, career of Ellen DeGeneres
LOS ANGELES, CA - JANUARY 18:  Actor Tom Hanks attends the People
PHOTO: Christopher Polk/Getty Images North America
LOS ANGELES, CA - JANUARY 18: Actor Tom Hanks attends the People's Choice Awards 2017 at Microsoft Theater on January 18, 2017 in Los Angeles, California. (Photo by Christopher Polk/Getty Images for People's Choice Awards)
Now playing
02:07
Tom Hanks' iconic roles throughout the years
sophie turner joe jonas las vegas
PHOTO: instagram/diplo
sophie turner joe jonas las vegas
Now playing
01:23
'GoT' star married by Elvis impersonator in Las Vegas
PHOTO: CBS
Now playing
01:00
Hillary Clinton makes cameo on 'Murphy Brown'
SYDNEY, AUSTRALIA - AUGUST 27:  Jane Fonda wears Chopard at the Sydney Opera House on August 27, 2018 in Sydney, Australia. (Photo by Caroline McCredie/Getty Images for Chopard)
PHOTO: Caroline McCredie/Getty Images AsiaPac/Getty Images for Chopard
SYDNEY, AUSTRALIA - AUGUST 27: Jane Fonda wears Chopard at the Sydney Opera House on August 27, 2018 in Sydney, Australia. (Photo by Caroline McCredie/Getty Images for Chopard)
Now playing
02:09
Jane Fonda opens up in new documentary
Tom Hanks as Mister Rogers
PHOTO: Sony Pictures
Tom Hanks as Mister Rogers
Now playing
00:45
Tom Hanks is your new neighbor Mister Rogers
PHOTO: NBC
Now playing
00:51
Items from 'The Office' up for auction
PHOTO: shutterstock/getty/cnnmoney
Now playing
00:54
Comcast outbids 21st Century Fox for Sky
PHOTO: Instagram/Ryan Reynolds
Now playing
00:58
Ryan Reynolds trolls director as car crashes
PHOTO: FremantleMedia/SYCOtv/NBC
Now playing
01:08
'America's Got Talent' crowns new winner
PHOTO: A&M/Octone Records
Now playing
01:13
Super Bowl performance rumors stir controversy
henry cavill superman mxp vpx_00000114.jpg
PHOTO: Warner Brothers
henry cavill superman mxp vpx_00000114.jpg
Now playing
00:48
Henry Cavill's role as 'Superman' in question (2018)
LAS VEGAS, NV - SEPTEMBER 23:  Recording artist Drake performs onstage at the 2016 iHeartRadio Music Festival at T-Mobile Arena on September 23, 2016 in Las Vegas, Nevada.  (Photo by Kevin Winter/Getty Images)
PHOTO: Kevin Winter/Getty Images North America/Getty Images
LAS VEGAS, NV - SEPTEMBER 23: Recording artist Drake performs onstage at the 2016 iHeartRadio Music Festival at T-Mobile Arena on September 23, 2016 in Las Vegas, Nevada. (Photo by Kevin Winter/Getty Images)
Now playing
00:50
Drake doles out $25K at concert
Vanessa Marquez as Nurse Wendy Goldman on "ER."
PHOTO: Alice S. Hall/NBCU Photo Bank
Vanessa Marquez as Nurse Wendy Goldman on "ER."
Now playing
01:09
'ER' actress shot and killed by police
Pallbearers carry the casket out of Greater Grace Temple at the end of the funeral for Aretha Franklin, Friday, Aug. 31, 2018, in Detroit. Franklin died Aug. 16, 2018 of pancreatic cancer at the age of 76. (AP Photo/Jeff Roberson)
PHOTO: Jeff Roberson/AP
Pallbearers carry the casket out of Greater Grace Temple at the end of the funeral for Aretha Franklin, Friday, Aug. 31, 2018, in Detroit. Franklin died Aug. 16, 2018 of pancreatic cancer at the age of 76. (AP Photo/Jeff Roberson)
Now playing
03:59
Aretha Franklin's funeral fit for a queen
(CNN) —  

NBC has answered the 9-1-1 call sent out by “Brooklyn Nine-Nine” fans.

The network late on Friday announced it has rescued the comedy series from an untimely death, one day after the show was canceled by Fox.

The series received a 13-episode sixth season order from NBC.

“Ever since we sold this show to Fox I’ve regretted letting it get away, and it’s high time it came back to its rightful home,” said Robert Greenblatt, chairman of NBC Entertainment.

He added: “We’re all thrilled that one of the smartest, funniest, and best cast comedies in a long time will take its place in our comedy line-up.”

Viewers of the cult comedy were vocal about their displeasure following news of the show’s axing. It was canceled along with two other comedies – “The Mick” and ‘“The Last Man on Earth” – as Fox made room on its schedule for a crop of new shows.

The news of “Brooklyn Nine-Nine’s” resurrection marks the second major network shuffle of the day.

Earlier on Friday, Fox announced it was reviving Tim Allen’s “Last Man Standing,” one year after the show was canceled by ABC.

The fan reaction apparently played a part in “Brooklyn Nine-Nine’s” second chance at life.

“You got loud and you were heard and you saved our show,” cast member Melissa Fumero tweeted.

The show is produced by Universal Television.

It stars Andy Samberg, Andre Braugher, Terry Crews, Melissa Fumero, Joe Lo Truglio, Stephanie Beatriz, Chelsea Peretti, Dirk Blocker and Joel McKinnon Miller.