Jimmy Garoppolo converted a pair of conversions on third-and-16 to set up Robbie Gould’s game-winning 33-yard field goal with no time left and the San Francisco 49ers eliminated the defending NFC champion Los Angeles Rams from playoff contention with a 34-31 victory Saturday night.

Garoppolo made up for a mostly pedestrian game for the 49ers (12-3) by delivering two big throws on the final drive after taking his fifth and sixth sacks.

He found Kendrick Bourne on an 18-yard pass over the middle to convert the first long third down and then hit Emmanuel Sanders behind a blown coverage for 46 yards to set up the winning kick.

From the Browns to Aaron Rodgers: the NFL season's biggest disappointments Read more

The Niners then ran out on the field to celebrate while the Rams (8-7) were eliminated with the loss. Minnesota became the fifth team to clinch a berth in the NFC with Dallas and Philadelphia battling for the final spot.

The victory kept the Niners in control in the race for the NFC’s top seed and home-field advantage throughout. They still need to win next week at Seattle to win the NFC West, otherwise they will be relegated to wild-card status.

Garoppolo finished 16 for 27 for 248 yards with one touchdown and two interceptions.

Jared Goff connected on a 22-yard TD pass to Cooper Kupp in the third quarter to put the Rams ahead 28-24. The defense had throttled the Niners, holding them to four punts, one interception and only two first downs in the second half before San Francisco took over at the 9 midway through the fourth quarter.

Garoppolo hit Kittle on a 36-yard pass to start the drive and then connected with Ross Dwelley on a 25-yarder that also featured a personal foul on Eric Weddle. Three plays later, Garoppolo scrambled on third down to give Kittle time to work free and then found him in the front of the end zone for the touchdown that made it 31-28.

Goff then responded and drove the Rams to a tying 52-yard field goal with 2:30 to play after Marcell Harris dropped a potential interception for San Francisco.

The offenses controlled the game early with Goff throwing a 10-yard TD pass to Brandin Cooks on the opening drive and Todd Gurley scoring on two short runs to stake the Rams to a 21-10 lead.

But Raheem Mostert answered Gurley’s second score with a TD run of his own. The defenses then buckled down starting when Fred Warner intercepted a swing pass from Goff in the closing minute of the first half and returned it 46 yards for a score that put San Francisco up 24-21 at the half.

The Niners defense then held firm after Garoppolo’s second interception set up the Rams in prime position to start the second half. But an intentional grounding penalty led to a 52-yard missed field goal by Greg Zuerlein.

Buffalo Bills 17-24 New England Patriots

Tom Brady passed for 271 yards and a touchdown, sneaked for a third-down conversion to set up another score and threw a downfield block on another scoring drive to help the New England Patriots clinch their 11th AFC East title in a row by beating Buffalo 24-17 on Saturday.

With Bills visiting for a rare late-season matchup while the division was still at stake, Sony Michel ran for 96 yards and Rex Burkhead rebounded for an opening-drive fumble to catch four passes for 77 yards and run for 20 more. Both teams had already clinched playoff berths; the Patriots (12-3) remain in contention for a first-round bye or even the No 1 seed in the AFC.

Josh Allen completed 13 of 26 passes for 208 yards and ran for 43 more, including a first down on fourth-and-1 from the Patriots 30 with about three minutes left. After driving to the New England 8, Allen over threw Dawson Knox in the end zone and then was sacked by Adam Butler. Facing fourth-and-goal from the 15 with just over one minute left, he was forced out of the pocket and had to throw the ball up for grabs in the end zone, where it was knocked down by JC Jackson.

Cole Beasley caught seven passes for 108 yards, and John Brown had a 53-yard touchdown reception for the Bills (10-5), who have qualified for the playoffs for the second time since 1999. They have not won a playoff game since 1995, following their last division title, when Marv Levy’s team beat Don Shula’s Miami Dolphins in the wild-card round.

Brady, who is 42 and nursing a right elbow injury, improved to 32-3 against the Bills, and Buffalo hasn’t beaten the Patriots in six games under coach Sean McDermott. This one was clinched when Burkhead ran it in from 1 yard with 5:11 left; Brady found Julian Edelman for the two-point conversion to make it a seven-point game.

The Bills made only one big play in the first 29 minutes, when safety Jordan Poyer punched the ball out of Burkhead’s hands, and Micah Hyde returned it 31 yards to the New England 31. That led to a field goal and a 3-0 lead.

Brady responded with a 75-yard drive, going 5-for-5 and hitting Matt LaCosse for an 8-yard score that made it 7-3. It was the three-time NFL MVP’s 539th TD pass, tying Peyton Manning for second behind Drew Brees, to Brady’s 76th different receiver, extending what was already a record.

After a Buffalo three-and-out, New England started on its 1 and went 17 plays before Nick Folk made a field goal from 36 yards. But a failed attempt on fourth-and-inches with 36 seconds left gave the Bills one more chance before the break.

Allen connected on two passes before dropping one in on Dawson Knox for 33 yards; although it was originally ruled a touchdown, replays showed he was brought down at the 1. Two plays later, 320-pound tackle Dion Dawkins was wide open for the touchdown that sent it into the half tied 10-10.

After the Patriots opened the second with Folk’s 51-yard field goal – the team’s first attempt from more than 50 yards all season – Allen connected with Brown from 53 yards to make it 17-13. It was Allen’s longest pass of the season.

But Brady led New England to a field goal and touchdown its last two full possessions, then the defense protected the lead by stopping the Bills.

Allen has thrown for a touchdown in 21 straight games, breaking Doug Flutie’s franchise record from 1998-99.

Houston Texans 23-20 Tampa Bay Buccaneers

Bradley Roby returned one of Jameis Winston’s four interceptions for a touchdown and Ka’imi Fairburn snapped a fourth-quarter tie with his third field goal Saturday, lifting the Houston Texans to a 23-20 victory over the Tampa Bay Buccaneers and their fourth AFC South title in five years.

Roby raced 27 yards up the right sideline after picking off Winston’s first pass of the game, the sixth pick-six the Bucs quarterback has thrown this season. Jahleel Addae’s interception with 1:27 remaining, ended any realistic chance the Bucs had of fully overcoming Winston’s mistakes.

The Texans (10-5) won despite not getting an especially sharp performance from Deshaun Watson, who completed 19 of 32 passes for 184 yards and one interception. The Bucs (7-8) sacked him five times and held Houston to one offensive TD on Carlos Hyde’s 1-yard run in the second quarter.

The Texans ended Tampa Bay’s four-game winning streak and are AFC South champions for the second straight year. They join the Patriots and Chiefs as the only teams with four division titles since 2015.

A week after becoming the first player in NFL history to throw for more than 450 yards in consecutive games, Winston was 25 of 48 for 335 yards and one touchdown. He tossed an interception on Tampa Bay’s opening drive for the fifth time in seven games, and nearly watched Houston go up 14-0 when Justin Reid intercepted him on the Bucs’ next possession.

Instead, the Texans settled for a field goal after a penalty for a blindside block negated what also would have been a 27-yard return for a TD. Hyde’s TD, set up by Peyton Barber’s fumble, put the Texans up 17-3.

A resilient Winston rallied the Bucs with a pair of touchdowns in the last two minutes of the opening half to make it 17-17. The teams traded third-quarter field goals, setting the stage for Watson to move the Texans into position for the go-ahead points, Fairburn’s 37-yard field goal with 7:11 remaining.