San Francisco 49ers wide receiver Deebo Samuel Sr., middle, is...

San Francisco 49ers wide receiver Deebo Samuel Sr., middle, is tackled by Los Angeles Rams linebacker Christian Rozeboom, foreground right, and others during the first half of an NFL football game in Santa Clara, Calif., Thursday, Dec. 12, 2024. Credit: AP/Godofredo A. Vásquez

SANTA CLARA, Calif. — Joshua Karty kicked four field goals and the Los Angeles Rams survived a slugfest a week after winning a shootout, beating the San Francisco 49ers 12-6 on Thursday night in a key game in the NFC West race.

Four days after beating Josh Allen and Buffalo 44-42 in the NFL's highest-scoring game of the season, the Rams (8-6) outlasted the 49ers (6-8) on a rainy night to move within a half-game of division-leading Seattle. Los Angeles won a game without a touchdown for the first time since 2016.

The Niners led 6-3 heading into the fourth quarter but came up short, dealing a major blow to the dwindling playoff hopes for the defending NFC champions.

This marked the fourth time this season that the Niners lost to a division opponent after leading by at least three points in the fourth quarter, making them the first team to do that since New England in 2000 in coach Bill Belichick's first season with the Patriots.

Karty capped a 17-play drive with a game-tying 23-yard field goal early in the fourth quarter and then hit a 27-yarder after Matthew Stafford connected on a 51-yard pass to Puka Nacua.

The Niners then drove into field-goal range but Brock Purdy was intercepted on a deep pass into the end zone by Darious Williams, helping the Rams secure their first series sweep against the 49ers since 2018.

Stafford then led a clock-killing drive that was capped by Karty's fourth field goal with 18 seconds to play. Stafford went 16 for 27 for 160 yards with almost all of the damage coming in the second half.

Los Angeles Rams place kicker Joshua Karty (16) kicks a...

Los Angeles Rams place kicker Joshua Karty (16) kicks a field goal from the hold of Ethan Evans during the second half of an NFL football game against the San Francisco 49ers in Santa Clara, Calif., Thursday, Dec. 12, 2024. Credit: AP/Jed Jacobsohn

Purdy finished 14 for 31 for 142 yards as the Niners failed to score a touchdown in a game for the first time since 2019.

The first half was played in a downpour and it had a major impact on the offensive performances with neither team able to move the ball.

The Rams had no first downs on their first four drives of a game for the first time since 2013 before getting a late field goal to tie the game. The Niners went three-and-out three times and got one field goal.

The teams combined for 11 punts, nine first downs and 197 yards four days after they both had season highs in points.

Los Angeles Rams wide receiver Puka Nacua (17) reacts after...

Los Angeles Rams wide receiver Puka Nacua (17) reacts after catching a pass against the San Francisco 49ers during the second half of an NFL football game in Santa Clara, Calif., Thursday, Dec. 12, 2024. Credit: AP/Godofredo A. Vásquez

The rain mostly stopped at halftime but the offenses still struggled.

Injuries

Rams: LB Nick Hampton (chest) left in the second half.

49ers: LB Dre Greenlaw returned for the first time since tearing his left Achilles tendon in the Super Bowl last season. He had eight tackles in the first half but played sparingly in the second half. ... S Ji'Ayir Brown (groin) left in the second half.

Up next

Rams: Visit the New York Jets on Dec. 22.

49ers: Visit Miami on Dec. 22.

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME