Robert Hanashiro-USA TODAY Sports

Lucas Havrisik kicked a 22-yard field goal with 1:31 remaining as the Los Angeles Rams rallied to defeat the Seattle Seahawks 17-16 Sunday in Inglewood, Calif.

Seahawks quarterback Geno Smith returned from an injury to guide Seattle into field-goal range in the final seconds, but Jason Myers' 55-yard attempt missed just right.

Matthew Stafford was 17-of-31 passing for 190 yards and a touchdown for the Rams (4-6), who snapped a three-game losing streak. Royce Freeman rushed 17 times for 73 yards.

It was a hard-hitting affair between the NFC West rivals.

Seahawks running back Kenneth Walker III (oblique) and Rams receiver Cooper Kupp (ankle) both left with injuries in the first half and didn't return.

Smith took a hard hit from Aaron Donald on the penultimate play of the third quarter and went to the sidelines with a right elbow injury. He only returned after the Rams took the lead.

Smith was 22 of 34 passing for 233 yards and a touchdown.

The Rams' Darrell Henderson Jr. scored on a 1-yard run with 7:38 remaining to cut Seattle's lead to 16-14.

The Seahawks (6-4) scored on their first three possessions to take a 13-0 lead.

Smith hit DK Metcalf with an 8-yard touchdown pass on the opening drive, then Myers kicked field goals of 54 and 43 yards.

The Seahawks, who managed just 180 yards of total offense in their 30-13 loss to the visiting Rams in the season opener, surpassed that in the first half Sunday with 204 yards.

The Rams, who had just 78 yards in their first three possessions, put together a nine-play, 75-yard drive to end the half, with Stafford throwing a 4-yard touchdown pass to Puka Nacua with nine seconds remaining to cut Seattle's lead to 13-7.

Myers added a 52-yarder with 8:03 left in the third quarter to make it 16-7.

Seahawks receiver Tyler Lockett had five receptions for 51 yards to move past Brian Blades for second in franchise history in both catches and receiving yardage. He trails Hall of Famer Steve Largent in both categories.

Linebacker Bobby Wagner, who returned to Seattle after one season with the Rams, made 10 tackles to reach 100 for a 12th consecutive season, the third NFL player to do so. London Fletcher and Derrick Brooks are the others.

More must-reads:

TODAY'S BEST
Dodgers make series of moves involving notable players
Giants rookie CF to undergo season-ending labrum surgery
Hurricanes not expected to re-sign defenseman, center
Paul Skenes makes incredible Wrigley Field history in second-career MLB start
Maple Leafs tab former Stanley Cup winner as new head coach
NFL insider expands on competition between Steelers QBs Russell Wilson, Justin Fields
NFL sets outrageous prices for Eagles-Packers Brazil game
Scottie Scheffler shoots improbable 66 after warming up for PGA Championship in a jail cell
Nuggets star has worrying comment about latest injury
Broncos 'very unlikely' to bring back former NFL interceptions leader
Greg Olsen offers broadcasting advice to Tom Brady
Yankees' Juan Soto reacts to Hal Steinbrenner contract talk
Mets star has theory about closer Edwin Diaz's recent struggles
Scottie Scheffler arrested, still makes PGA Championship tee time
Timberwolves chew up Nuggets to force Game 7
Rangers secure spot in conference finals after stunning third-period comeback over Hurricanes
Xander Schauffele makes history in first round of PGA Championship
Yankees' Hal Steinbrenner shares massive Juan Soto contract update
Steelers' Cameron Heyward addresses contract holdout
Knicks star ruled out for potential closeout game