Evan McPherson kicked a 20-yard field goal as time ran out, and the Cincinnati Bengals earned their first AFC North title and postseason appearance in six years with a wild 34-31 win over the Kansas City Chiefs on Sunday.

Also read: Watch | Antonio Brown rips Bucs’ uniform, exits field during win vs New York Jets

Rookie Ja’Marr Chase had a franchise-record 266 yards receiving and three touchdowns on 11 catches, Joe Burrow threw for 466 yards and four scores while outdueling Patrick Mahomes, and the Bengals rallied from three 14-point deficits against the AFC West champs.

Chase broke Jerry Butler’s NFL rookie record set for Buffalo against the Jets with 255 on Sept. 23, 1979.

Kansas City (11-5) had its eight-game winning streak ended and lost the top seed in the AFC to the Titans.

Also read: NFL: Matthew Stafford rallies surging Los Angeles Rams past short-handed Baltimore Ravens

The Bengals’ winning drive was filled with drama.

On fourth-and-inches with under a minute left, the Bengals (10-6) went for a touchdown instead of calling on McPherson for a field goal and giving the Chiefs the ball back with a chance to win.

Burrow threw incomplete in the end zone, but Chiefs cornerback L’Jarius Sneed was flagged for illegal use of hands. Backup quarterback Brandon Allen was called on to kneel twice before McPherson came on for the winning kick.

Burrow was outstanding again, completing 30 of 39 attempts. He was sacked four times and hit at least six more times but was as accurate as ever, and Chase caught everything that was thrown near him.

Mahomes looked as if he had the game under control early. He threw two first-quarter touchdown passes to give the Chiefs the early lead, but he didn’t get another one.

Also read: NFL: Bye Ben? Roethlisberger eyes one last stand at Heinz Field

The Chiefs (11-5) led 14-0, 21-7 and 28-14 in the first half. They were ahead 28-17 at halftime before the Bengals began the latest of several second-half surges this season.

A 69-yard TD pass from Burrow to Chase early in the second half cut the Chiefs’ lead to 28-24. Kansas City responded with Harrison Butker’s 34-yard field goal.

Also read: NFL: Mark Andrews breaks Baltimore Raven’s single-season receiving record

Burrow then hit Tyler Boyd for a 5-yard TD, capping an 86-yard drive that was twice extended by flags on Sneed, including an unnecessary roughness penalty that gave Cincinnati first-and-goal at the Kansas City 7.

Patrick Mahomes was 26 for 35 for 259 yards and threw touchdown passes to Demarcus Robinson. Tight end Travis Kelce, who caught a pass in his 125th straight game.