Andy Samberg, the comedian who plays Detective Jake Peralta on Brooklyn Nine-Nine, will direct the Prime Emmy Awards in Los Angeles on September 20. Samberg is best known for his seven seasons on Saturday Night Live.

Andy SambergAndy Samberg [L] will host the Emmy Awards in Los Angeles in September

"Buckle your seat belts, Emmy viewers! Like, in general you should buckle your seat belts in your car. In fact, even if you're not an Emmy viewer, you should buckle your seat belt. It can be dangerous on the road," Samberg said, in a statement.

"Also, if you're not an Emmy viewer, you should strongly consider becoming one this year, because I'm hosting, and it's gonna be a wild ride."

More: Saturday Night Live's Andy Samberg to marry musician Joanna Newsom

Samberg, who earned a Golden Globe nomination for best comedy actor last year, previously won an Emmy in 2007 for his sketch song as part of comedy troupe The Lonely Island. 

Samberg also performed on Everything is Awesome - the hit song from The Lego Movie. 

Fox TV's Gary Newman and Dana Walden said this year's host "had to be Andy."

"He is fearless, hilarious, an award-winning comedian, singer, writer and actor with incredible live TV experience. We know he'll deliver the laughs and give viewers an incredible night," the pair said in a statement.

Last month, the Television Academy announced new rules for the Emmy Awards, with nominees in comedy and drama categories rising from six to seven. Comedy series must now also run for half an hour or less per episode, while dramas must run for more than 30 minutes per episode.  

More: Fox orders Seth MacFarlane's Dad's and Samberg's Brooklyn Nine Nine [analysis]