View game action photos between the Vikings and 49ers during the Week 12 matchup at Levi's Stadium.
SANTA CLARA, Calif. — The Vikings fought until the end, but their final drive stalled at the 38-yard line with under a minute to go in a 34-26 loss Sunday.
Minnesota fell to 5-6 on the season in its 10th of 11 games decided by one score, and San Francisco leapfrogged ahead to 6-5 by claiming its second win at home this season.
The 49ers seized control of the game with a tying-touchdown drive to end the first half and another touchdown drive to open the second. The tying score occurred on a possession that lasted 15 plays and covered 85 yards in 8:20.
The go-ahead score needed just six plays and 3:29 to cover 75 yards.
Kirk Cousins was intercepted on Minnesota's next offensive play by Azeez Al-Shaair, giving the ball back to the 49ers at the Vikings 2-yard line.
Elijah Mitchell scored on the next snap for a 28-14 lead with 11:09 remaining in the third quarter.
The Vikings answered with gains of 30 on a run and 24 on a reception by Dalvin Cook, who later was carted off. Alexander Mattison rushed for a 6-yard touchdown after Cook caught a throwback pass from Justin Jefferson.
The 49ers added a field goal for a 31-20 lead, before Kene Nwangwu returned the ensuing kickoff 99 yards for a touchdown. Minnesota's extra point missed wide right, so San Francisco led 31-26 with 4:46 remaining in the third quarter.
Minnesota forced a punt, but Cook lost a fumble on Minnesota's next snap and suffered a shoulder injury.
The Vikings missed out on an opportunity to tie the game in the fourth quarter, but four plays from the San Francisco 6-yard line totaled just 3 yards.
Mattison ran for gains of 1 and 2, but a pass to Tyler Conklin was incomplete on third down.
Confusion ensued before the fourth-down play, with Kirk Cousins running over to redirect Justin Jefferson from the right side of the formation to the left. When Cousins returned to the line of scrimmage, he was behind right guard Olisaemeka Udoh instead of center Mason Cole. Minnesota used its second timeout of the second half (the first was lost on an unsuccessful challenge). A throw on fourth down sailed over Jefferson's head.
San Francisco controlled the clock by going 5-for-12 on third downs, compared to a 2-for-8 showing by Minnesota. The 49ers possessed the ball for 37:07.
Cousins finished 20-of-32 passing for 238 yards with two touchdowns to Adam Thielen, who totaled 62 yards on five catches. Jefferson finished with 83 yards on four receptions.
The 49ers totaled 423 yards, including 208 on the ground.
Q1, 8:27 remaining
Vikings 7, 49ers 0
Adam Thielen catches a 2-yard pass from Kirk Cousins (Greg Joseph kicks PAT) [8 plays, 49 yards, 3:33 time of possession]
Points off pick: The Vikings were aggressive after an interception by Harrison Smith. Minnesota went no-huddle on its first two plays of the drive (completions to Dalvin Cook for 2 and 11 yards. The Vikings worked in a flea flicker for a 29-yard pass to Thielen. Minnesota went for it on fourth-and-goal to score the touchdown.
Q1, 5:31 remaining
Vikings 7, 49ers 7
Deebo Samuel rushes for 20 yards (Robbie Gould kicks PAT) [6 plays, 75 yards, 2:56 time of possession]
Explosive gains: Samuel's score followed a 15-yard run by Elijah Mitchell. The drive also included a gain of 37 on a pass from Jimmy Garoppolo to Brandon Aiyuk that converted a third-and-13.
Q2, 12:42 remaining
Vikings 14, 49ers 7
Thielen catches a 20-yard pass from Cousins (Joseph kicks PAT) [6 plays, 80 yards, 2:50 time of possession]
Q2, 0:18 remaining
Vikings 14, 49ers 14
Jauan Jennings catches a 3-yard pass from Garoppolo (Gould kicks PAT) [15 plays, 85 yards, 8:20 time of possession]
Q3, 11:31 remaining
49ers 21, Vikings 14
Samuel rushes for 3 yards (Gould kicks PAT) [6 plays, 75 yards, 3:29 time of possession]
Gaining an edge: Samuel did the biggest damage on the drive by getting to the edge on runs of 49 and 3 yards.
Q3, 11:09 remaining
49ers 28, Vikings 14
Elijah Mitchell rushes for 2 yards (Gould kicks PAT) [1 play, 2 yards, 0:04 time of possession]
Q3, 8:28 remaining
49ers 28, Vikings 20
Alexander Mattison rushes for 6 yards (Joseph PAT misses wide right) [5 plays, 75 yards, 2:41 time of possession]
Chef's special: Cook opened the drive with a run up the middle for 30 yards and added a 24-yard gain on a throwback pass from Jefferson.
Q3, 4:58 remaining
49ers 31, Vikings 20
Gould kicks 46-yard field goal [7 plays, 47 yards, 3:31 time of possession]
Drive starter: The 49ers were able to answer Minnesota's touchdown immediately with a 30-yard pass to Aiyuk.
Q3, 4:46 remaining
49ers 31, Vikings 26
Kene Nwangwu returns kickoff 99 yards (Cousins' conversion pass incomplete)
Q3, 0:09 remaining
49ers 34, Vikings 26
Gould kicks 22-yard field goal [4 plays, 5 yards, 1:21 time of possession]