The San Francisco 49ers took down the Los Angeles Rams 27-24 in overtime on Sunday at SoFi Stadium to clinch an NFC Wild-Card spot.

The 49ers needed a win over the Rams or a New Orleans Saints loss vs the Atlanta Falcon- and things looked rough for the 49ers for a while. Los Angeles led San Francisco 17-0, and the Saints were beating up on the Falcons en route to a 30-20 win.

But the 49ers dominated in the second half. Star wide receiver Deebo Samuel — four receptions for 95 yards, eight carries for 45 yards, and even a 24-yard touchdown pass — and a committment to the run game from head coach Kyle Shanahan keyed the second-half comeback for San Francisco.

Rams slide to three seed, but wins NFC West

Matthew Stafford and Cooper Kupp connected — as they frequently do — to give the Rams the lead back with 2:29 remaining in regulation.

But the 49ers got a touchdown of their own to tie the game back up and send it to overtime.

In overtime, the 49ers got a go-ahead field goal from Robbie Gould with 2:45 remaining.

And the 49ers locked up the playoff-clinching victory when Ambry Thomas intercepted a deep pass from Stafford.

Despite the loss, the Rams still clinch the NFC West division title due to the Arizona Cardinals losing at home to the Seattle Seahawks. However, the Rams drop from the No. 2 seed to the No. 3 seed with the loss; the Tampa Bay Buccaneers have the No. 2 seed. The Rams will host the Cardinals in the Wild-Card round.

The 49ers clinch the No. 6 seed and will go on the road to face the Dallas Cowboys.

Here’s a sampling of how the NFL world reacted to 49ers’ incredible comeback win:

About Matt Clapp

Matt is an editor at The Comeback. He attended Colorado State University, wishes he was Saved by the Bell's Zack Morris, and idolizes Larry David. And loves pizza and dogs because obviously.

He can be followed on Twitter at @Matt2Clapp (also @TheBlogfines for Cubs/MLB tweets and @DaBearNecess for Bears/NFL tweets), and can be reached by email at mclapp@thecomeback.com.