The 49ers (2-2) have defeated the Rams (2-2) seven times in a row during the regular season, but they also exacted retribution for losing to them in their most recent meeting, the NFC Championship, last year.
Deebo Samuel hauled in six passes for 115 yards, including a touchdown from 57 yards.
On Monday Night Football, Talanoa Hufanga helped the San Francisco 49ers defeat the defending champion Los Angeles Rams by bringing back an interception 52 yards for a touchdown. The score was 24-9 in favour of the 49ers.
For 239 yards and one touchdown, Jimmy Garoppolo completed 16 of his 27 throws.
San Francisco (2-2) defeated the Rams for the seventh time in a row during the regular season thanks to Jeff Wilson Jr.'s 74 yards and one score on the ground (2-2).
The San Francisco 49ers defeated the Los Angeles Rams thanks to an explosive score by Deebo Samuel that covered 57 yards.
However, Los Angeles had won the biggest and most recent matchup between the two teams, defeating the 49ers in the NFC Championship Game to claim the Super Bowl the previous year.
The Rams' powerful attack was held to just nine points by the Niners' formidable defence on Monday night, giving them their comeback.
In the second half, both teams added a few more field goals, but Robbie Gould missed a second opportunity to give the 49ers a bigger lead.