Christian McCaffrey rushed for two touchdowns, including the go-ahead score with 1:07 left, and the San Francisco 49ers held on to beat the Green Bay Packers 24-21 in their NFC divisional round playoff game on Saturday night in Santa Clara, California.

Brock Purdy completed 23 of 39 passes for 252 yards and a touchdown for the 49ers, who advanced to the NFC Championship Game for the third season in a row. Linebacker Dre Greenlaw picked off two passes, including one in the final minute to seal the win.

¡°He¡¯s been battling these two weeks trying to get back and get healthy for the game, he inspires the heck out of all of us,¡± Niners coach Kyle Shanahan said of Greenlaw. ¡°The way he runs, the way he hits, for him to make those plays, catching the ball when they send both to him.