ARLINGTON, Texas — Dak Prescott threw for two touchdowns, Malik Davis sprinted 43 yards for a score and the Dallas Cowboys overcame two fourth down TD throws from Patrick Mahomes in a 31-28 Thanksgiving victory over the Kansas City Chiefs on Thursday.

CeeDee Lamb scored the first Dallas touchdown and finished with 112 yards on seven catches four days after drops plagued the star receiver in a victory over defending Super Bowl champion Philadelphia.

The Cowboys (6-5-1) have won three straight, knocking off both of last season’s Super Bowl teams in the past five days, and they dropped the defending AFC champion Chiefs (6-6) back to .500 in a matchup of playoff-chasing teams.

Kansas City Chiefs quarterback Patrick Mahomes sacked by Dallas Cowboys defensive end Jadeveon Clowney (42) and defensive tackle Osa Odighizuwa (97).Patrick Mahomes gets sacked during the Chiefs’ Nov. 27 loss to the Cowboys. AP

Mahomes had four touchdown passes in his first professional game at the home of the Cowboys, where he played three times for Texas Tech not far from his East Texas roots.

Travis Kelce caught Mahomes’ first fourth down TD toss on a 2-yarder, and Rashee Rice’s second scoring catch came on fourth-and-3 early in the fourth quarter.

Kansas City was down 10 when Mahomes was almost tripped in the backfield by Quinnen Williams but kept his feet and found Xavier Worthy wide open down the field for 42 yards, setting up a 10-yard scoring toss to Hollywood Brown with 3:27 remaining.

Dallas Cowboys Dak Prescott #4 and CeeDee Lamb #88 celebrate a touchdown.Dak Prescott and CeeDee Lamb celebrate a touchdown during the Cowboys’ Nov. 27 win against the Chiefs. Getty Images

make every NFL game pay off

underdog fantasy logo Underdog Fantasy

Underdog is where football fans become winners.

Easy player picks

No season-long commitments

Real prizes every single night

Use promo code NYPOST5 to get $50 in site credits when you play $5!

Must be 18+ (19+ in AL, NE; 19+ in CO for some games, 21+ in AZ and MAZ) and present in a state where Underdog operates. Concerned with your play? Call 1-800-GABMLER or visit http://www.ncpgambling.org. NY: Call the 24/7 HOPEline at 1-877-8-HOPENY or text HOPENY (467369). New York Post receives revenue from affiliate and advertising partnerships for sharing this content and when you make a purchase. The Underdog promo code might vary by location.

Prescott and company didn’t give Mahomes another chance.

After two pass interference penalties gave Dallas first downs, Prescott hit George Pickens for 13 yards and a clinching first down at the two-minute warning. Prescott kneeled three times after that.

Rice had eight catches for 92 yards, his first score coming on a 27-yard catch-and-run on the sideline two plays after Prescott was intercepted by Jaylen Watson on the first Dallas possession.

Davis had just three carries, but his long run gave Dallas its first lead at 17-14 late in the second quarter.