Brooklyn Nine-Nine and Last Man on Earth will both return for new seasons, Fox announced Thursday. Their renewals mean a fourth season for Brooklyn and a third for Last Man.

"We're so proud of these comedies," Fox's president of entertainment David Madden said in a release. "Each has its own unique voice, but they both boast terrific ensembles with stand-out characters and, of course, phenomenal writing, which are the hallmarks of all great comedies."

Watch Damon Wayans Jr. deliver an epic smackdown on Brooklyn Nine-Nine.

The network recently announced renewals for Gotham, Empire, Scream Queens and Bones. For now, the news leaves the fates of Cooper Barrett's Guide to Surviving Life, The Grinder, Grandfathered, Rosewood, Lucifer, Sleepy Hollow and New Girl in question.

WATCH: Brooklyn Nine-Nine star Terry Crews reveals past porn addiction.