ORCHARD PARK, N.Y. (AP) 鈥 Josh Allen rushed for two touchdowns, Buffalosa国际传媒 defence forced three turnovers, and the Bills advanced to the AFC championship game with a 27-25 win over the Baltimore Ravens in the NFL's divisional round on Sunday night.

The Bills hung on when a wide-open Mark Andrews from Lamar Jackson, allowing the ball to bounce off his chest with 1:33 left. Jackson for a 24-yard touchdown to give the Ravens a chance to tie it.

The Bills advanced to the AFC championship game next Sunday against the conferencesa国际传媒 top seed, the two-time defending Super Bowl champion Kansas City Chiefs. Buffalo snapped a three-year run of being eliminated in the divisional round.

Itsa国际传媒 a familiar matchup for Buffalo, which has been eliminated by Kansas City in three of the past four post-seasons.

on runs of one and four yards while Ray Davis also scored on a one-yard run. Tyler Bass hit both field goal attempts, including a 21-yarder with 3:29 left after the Bills stalled at Baltimoresa国际传媒 two-yard-line. That drive was set up by the Ravens' final turnover, when linebacker Terrel Bernard stripped the ball from Andrews at the Buffalo 44.

The Bills closed their season a perfect 10-0 at home. That included a 30-21 win over the previously unbeaten Chiefs in Week 11.

The Ravens had one of the NFLsa国际传媒 most productive offences in the regular season but fell a win short of reaching the conference title game, which they lost to the Chiefs a year ago. Scrutiny of Jacksonsa国际传媒 playoff performances will only increase as he fell to 3-5 in the post-season. He had two first-half turnovers in this loss, throwing an interception and losing a fumble.

Baltimore fell to 5-8 in the divisional round, including 1-4 in its last five.

The Bills continued playing complementary football to overcome a patchwork defence and an offence that didn鈥檛 have a receiver reach 900 yards this season. Buffalo finished the regular season with a league-best plus-24 turnover differential.

That continued on Sunday with a turnover-free game from Allen and the Bills that was just good enough on a field that was slick with a dusting of snow.

Buffalo's defence held up, limiting Derrick Henry to 84 yards rushing and a touchdown on 16 carries. In Week 4, Henry had a season-best 199 yards rushing in the Ravens' 35-10 win 鈥 the Bills' most lopsided defeat of the season.

In a matchup of two MVP candidates, Jackson went 18 of 25 for 254 yards and two touchdowns.

Allen went 16 of 22 for 127 yards and his one-yard run with 8:49 left in the second quarter gave the Bills the lead for good at 14-7.

That score was set up by Jacksonsa国际传媒 fumble. Facing second-and-10 at the Buffalo 28, Jackson first had to secure a high snap. After gaining control, he attempted to scramble forward, only to lose the ball when safety Damar Hamlin grabbed the quarterback by the ankle.

Von Miller scooped up the fumble and was finally chased down at Baltimoresa国际传媒 24. Allen scored four plays later to chants of 鈥淢VP! MVP!鈥

The Ravens failed on both two-point conversion attempts, with linebacker Matt Milano batting down Jackson's pass attempt after Henry scored to make it 21-19.

Baltimore took the opening kickoff and drove for a touchdown, with Jackson hitting Rashod Bateman from 16 yards out.

INJURIES

Ravens: Leading receiver Zay Flowers missed both playoff games with a knee injury.

Bills: Safety Taylor Rapp did not return after hurting his hip in the second quarter.

UP NEXT

The Bills get a rematch of the 2020 AFC championship game, which Patrick Mahomes and the Chiefs won 38-24.

___

AP NFL:

The Canadian Press. All rights reserved.