This advertisement has not loaded yet, but your article continues below.

San Francisco quarterback Mac Jones tosses a pass to Christian McCaffrey in an NFL overtime victory over the Los Angeles Rams. Photo by RONALD MARTINEZ /GETTY IMAGES NORTH AMERICA/AFP
LOS ANGELES — San Francisco’s Eddy Pineiro booted a 41-yard field goal in overtime and the 49ers defence came up big in a tense 26-23 NFL victory over the Los Angeles Rams on Thursday.
This advertisement has not loaded yet, but your article continues below.

THIS CONTENT IS RESERVED FOR SUBSCRIBERS ONLY
Subscribe now to read the latest news in your city and across Canada.
* Exclusive articles by top sports columnists Patrick Johnston, Ben Kuzma, J.J. Abrams and others. Plus, Canucks Report, Sports and Headline News newsletters and events.
* Unlimited online access to The Province and 15 news sites with one account.
* The Province ePaper, an electronic replica of the print edition to view on any device, share and comment on.
* Daily puzzles and comics, including the New York Times Crossword.
* Support local journalism.
SUBSCRIBE TO UNLOCK MORE ARTICLES
Subscribe now to read the latest news in your city and across Canada.
* Exclusive articles by top sports columnists Patrick Johnston, Ben Kuzma, J.J. Abrams and others. Plus, Canucks Report, Sports and Headline News newsletters and events.
* Unlimited online access to The Province and 15 news sites with one account.
* The Province ePaper, an electronic replica of the print edition to view on any device, share and comment on.
* Daily puzzles and comics, including the New York Times Crossword.
* Support local journalism.
REGISTER / SIGN IN TO UNLOCK MORE ARTICLES
Create an account or sign in to continue with your reading experience.
* Access articles from across Canada with one account.
* Share your thoughts and join the conversation in the comments.
* Enjoy additional articles per month.
* Get email updates from your favourite authors.
THIS ARTICLE IS FREE TO READ REGISTER TO UNLOCK.
Create an account or sign in to continue with your reading experience.
* Access articles from across Canada with one account
* Share your thoughts and join the conversation in the comments
* Enjoy additional articles per month
* Get email updates from your favourite authors
Pineiro banked in the game-winner off the inside of the left upright with 5:51 left in overtime.
San Francisco’s defense thwarted the Rams’ ensuing drive with Deommodore Lenoir and Marques Sigle credited for the game-winning fourth-down stop of Rams running back Kyren Williams.
Pineiro’s 59-yard field goal with 2:52 left in the fourth quarter had put San Francisco up 23-20, and the 49ers then forced a goalline fumble from Williams with 1:07 remaining.
But the 49ers were forced to punt and Rams kicker Joshua Karty drilled a 48-yard field goal with two seconds left in regulation to force overtime.
It was a gritty win for quarterback Mac Jones and the banged-up 49ers over an NFC West division rival that had won their last three encounters.
This advertisement has not loaded yet, but your article continues below.
Jones, standing in again for injured Brock Purdy, battled through a knee injury as well as arm and leg cramps, throwing for 342 yards and two touchdowns.
Kendrick Bourne caught 10 passes for 142 yards, Christian McCaffrey had eight catches for 82 yards and a TD and the Niners led 17-7 at halftime and were up 20-7 in the third quarter.
Rams quarterback Matthew Stafford passed for 389 yards and three touchdowns — two to Williams and one to Puka Nacua.
Nacua now has 52 catches this season, the most ever through five games of a season.
Stafford connected with Williams on an eight-yard scoring pass that made it 20-20 early in the fourth quarter, but the missed extra point attempt by Karty denied the Rams their first lead of the game.
The 49ers rebounded from a loss to Jacksonville to improve to 4-1 overall, 3-0 against division foes.
They did it with not only Purdy but also Jauan Jennings, Ricky Pearsall, George Kittle and Nick Bosa among those sidelined by injury.