Phil Dawson kicked the winning field goal in the last second of the game as the San Francisco 49ers edged out the Green Bay Packers on a freezing cold night in Wisconsin.
Mason Crosby kicked a 24-yard field goal to bring the Packers level at 20-20 with a little over five minutes to play, but the 49ers kept control of the football over the closing stages to run the clock down and seal it on Dawson's 33-yard kick on the final play of the game.
Colin Kaepernick threw for 227 yards and a touchdown and rushed for 98 yards for the 49ers, who go on to face the Carolina Panthers in the next stage.
The previous day the 49ers called on WWE star Ric Flair to give words of encouragement as a alternative team talk prior to the meeting with the Packers.
The San Diego Chargers booked a meeting with the Denver Broncos in the AFC divisional play-offs after a one-sided 27-10 win over the Cincinnati Bengals in Sunday's wild-card encounter.
The Chargers took full advantage as Bengals quarterback Andy Dalton suffered a nightmare outing, coughing up two interceptions and a fumble in a scoreless second half for the hosts.
Dalton rushed for Cincinnati's only touchdown of the contest but his subsequent woes helped the Chargers outscore the Bengals 20-0 after the interval on their way to a fifth straight victory.
San Diego quarterback Philip Rivers was happy to rely on the running game as completed 12 of 16 for 128 yards, with a lone touchdown pass going to Ladarius Green.
Danny Woodhead opened the scoring with a five-yard run in the first quarter, while Ronnie Brown ran in a 58-yard touchdown to set the seal on the win, as the AFC North-winning Bengals fell at the first hurdle in the play-offs for the third year in a row.