Modern Family won the award for Outstanding Comedy Series at the 65th Annual Primetime Emmy Awards on Sunday.

The show received 12 nominations this year, giving it a total of 57 nominations since its premiere in 2009. The show was up against 30 Rock, The Big Bang Theory, Girls, Louie and Veep.

The cast all walked on stage to accept the award and the show's executive producer, Steven Levitan, made the acceptance speech.

Carrie Underwood Performs The Beatles Yesterday At The 2013 Emmys

"Well this may be the saddest Emmys of all time but we could not be happier," he said. "Seriously, we have the deepest respect for our co-nominees. You guys make us laugh and you guys make us jealous every week. It is an honor just to be mentioned among you."

Tony Hale Wins The Award For Outstanding Supporting Actor In A Comedy Series

He continued, "I can not begin to express to you how surreal this ride has been because none of us grew up feeling like winners so thank you to the bullies, to the popular kids, to the gym teachers who taunted us, who rejected us and who made fun of the way we read. Without you, we never would've gone into comedy."

Modern Family's Jesse Tyler Ferguson Talks Challenges On Project Runway 

This year's Emmys were hosted by Neil Patrick Harris, which marks the second time the How I Met Your Mother actor hosted the show.

"It's a fun awards show, because it honors television and all of the people that are there are in their own little bubble worlds. They all are working really hard," he recently said on The Talk. "I'm just trying to keep the flow alive. My goal isn't to outperform or to like show off, my job more is to make sure things are moving smoothly."

Tags: Emmys 2013