Robbie Gould was as good as gold.
The 49ers veteran kicker booted a 45-yard field goal as time expired to lift San Francisco to a 13-10 victory over the top-seeded Green Bay Packers to advance to the NFC title game.
CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM
San Francisco will square off against either the Tampa Bay Buccaneers or Los Angeles Rams on Jan. 30.
Packers quarterback Aaron Rodgers dropped to 0-4 in his playoff career against the 49ers. Most recently, San Francisco came away with a 37-20 win in the NFC title game two years ago. It was the second straight season the Packers came away with the top seed in the NFC, but they failed to reach the Super Bowl.
EVAN MCPHERSON BOOTS 52-YARD GAME-WINNING FIELD GOAL, LIFTS BENGALS TO UPSET VICTORY OVER TITANS
After the Packers took an early 7-0 lead, the 49ers managed to score 10 unanswered points in the final five minutes. The Niners tied the game with 4:41 to go after Jordan Willis’ outstretched left hand blocked a punt by Corey Bojorquez, who was kicking from the front of his end zone. Talanoa Hufanga picked up the ball at the 6-yard line and ran it in to make it 10-10.
CLICK HERE TO GET THE FOX NEWS APP
The Packers went three-and-out on their ensuing drive, and the 49ers back the football back at their own 29-yard-line with 3:20 left in the game. Wide receiver Deebo Samuel produced a 9-yard run on third-and-8 from the Green Bay 38, and the 49ers ran down the clock to set up Gould.
The Associated Press contributed to this report.