ORCHARD PARK, N.Y. — Josh Allen ran for a 26-yard touchdown on fourth down with 2:17 left, sealing the Buffalo Bills' 30-21 win over the Kansas City Chiefs on Sunday and handing the two-time defending Super Bowl champions their first loss of the season.

James Cook rushed for two touchdowns and Allen threw a 12-yard TD pass to Curtis Samuel for Buffalo (9-2), which closed the gap on Kansas City (9-1) in the race for the AFC's top seed. Patrick Mahomes and Chiefs were the NFL's last undefeated team and finally ran out ways to eke out one-score victories and overcome second-half deficits. The Chiefs had won 15 straight, including playoffs, since they fell 20-14 to the Las Vegas Raiders on Dec.

17, 2023. The Bills have won six straight and moved closer to their sixth straight AFC East title. Buffalo has defeated the Chiefs in four straight regular-season meetings, though Kansas City holds the postseason edge, having won the past three matchups dating to 2020.

And it wouldn't be a surprise if the teams met again in January. The packed stadium erupted in chants of "MVP!" as the videoboard showed replays of Allen's touchdown. Bills coach Sean McDermott opted to go for it on fourth-and-2 instead of kicking a field goal for a five-point lead.

Allen faked a pass to his left and then broke up the middle, where he bounced off two Chiefs defenders before crossing the goal line. Allen played through a sore throwing hand, which was examined on the sideline during the game. He finished 27 .