Peyton Manning Peyton Manning

Peyton Manning has set a new NFL record for career touchdown passes.

On Sunday night, the Denver Broncos' quarterback threw his 509th career touchdown pass, breaking Brett Favre's previous record. Denver went on to beat the San Francisco 49ers 42-17, with  Manning throwing four touchdowns to set the record at 510. (He only needed three TDs to break the record.)

Video: What makes macho former football pro Deion Sanders weep?

Following the game's big moment, Demaryius Thomas, who received the record-breaking pass, joined receivers Wes Welker, Emmanuel Sanders and tight end Julius Thomas for a game of keep-away from Manning with the ball. Manning eventually got to hold onto it, but the record-setting ball will eventually go to the Pro Football Hall of Fame.

Video: Which NFL stadium has the best grub?

"I'm very humbled and very honored," the 38-year-old said, according to USA Today.  "I certainly think about how grateful I am for all the teammates and coaches that I've played with and played for throughout my career, not only here in Denver — in Indianapolis and all the people that have helped me along the way. I've always been a big fan of quarterbacks, whether it's Brett Favre or Dan Marino or John Elway. I'm very honored and humbled to join a pretty unique club."

Favre tweeted his congratulations saying:

Manning achieved the record in his 246th game, 56 fewer than it took Favre. USA Today also writes that if Manning continues to throw touchdowns at his current rate, he'll reach 600 in 2016.

Thursday Night Football stars share memories of their very first game