Jayne Kamin-Oncea-USA TODAY Sports

The San Francisco 49ers will face the Dallas Cowboys in an NFC Wildcard game next week after pulling off the unlikeliest of wins on the road against the Los Angeles Rams on Sunday.

San Francisco found itself down 17-0 in the first half and was being completely dominated. Riding an elite rushing attack and some gutsy play from injured quarterback Jimmy Garoppolo, the 49ers somehow found a way to come out on top.

Once Garoppolo threw an interception with his 49ers driving for the potential lead midway through the fourth quarter, it seemed like the Rams would come out on top. A 92-yard touchdown drive engineered by Matthew Stafford on the Rams’ following possession seemed to be the nail in the 49ers’ coffin.

That’s when Garoppolo led the 49ers on their own 88-yard touchdown drive in just over a minute to force overtime.

With the New Orleans Saints having defeated the Atlanta Falcons in another Week 18 afternoon game, the 49ers headed into overtime knowing they needed a win or tie to earn a playoff spot.

Boy, did Garoppolo and Co. step up. That included the embattled San Francisco 49ers quarterback leading the team on a 69-yard field goal drive to move up 27-24.

Despite this, the Rams still had a chance to end San Francisco’s season with just over two minutes remaining in overtime. Shockingly, rookie 49ers cornerback Ambry Thomas ended the game with an interception of Stafford to send San Francisco to the playoffs and into Dallas to take on the Cowboys.

NFL world reacts to San Francisco 49ers walking off into the playoffs

More must-reads:

TODAY'S BEST
Perpetual Bulls trade candidate once more hitting the rumor mill
MLB announces host venues for 2026 World Baseball Classic
Knicks marquee trade acquisition could bolt in free agency
If Lions HC Dan Campbell's assessment of WR is accurate it could mean trouble for opponents
NBA closes investigation into embattled Thunder guard
NFL reporter predicts Cowboys' plan for QB Dak Prescott
Cavaliers make decision on head coach J.B. Bickerstaff’s future
Two young stars get hefty bonuses for making All-NBA teams
Mavericks star duo joins exclusive club with Game 1 win
Mavericks ride 'Luka Magic' on both ends late to win Game 1
Panthers shut out Rangers 3-0 in Eastern Conference Final opener
NBA announces 2023-24 All-NBA teams
Star Padres infielder to miss significant time with shoulder injury
LeBron James, Charles Barkley passionately defend Caitlin Clark from 'petty' haters
Roger Goodell discusses factors for possible 18-game NFL season
Cowboys QB Dak Prescott has intriguing comment on his contract situation
Celtics toying around with surprise Jayson Tatum move in conference finals
Former teammate warns Tee Higgins about pitfalls of playing on franchise tag
Watch: Timberwolves and Mavericks trade dunks in third quarter
Yankees owner Hal Steinbrenner tempers expectations for Juan Soto extension