Christian McCaffrey scored his second touchdown on a 6-yard run with 1:07 to play, and the San Francisco 49ers mounted their first second-half comeback of the season to defeat the Green Bay Packers 24-21 in a divisional round playoff game on Saturday night.

After spending the regular season as front-runners, the Niners (13-5) needed to come from behind for a change, and Brock Purdy and McCaffrey did just enough on the last drive to send San Francisco to its third straight NFC Championship Game. The Niners will host the winner of Sunday's game between Tampa Bay and Detroit next weekend for a spot in the Super Bowl.