The Vikings trailed for much of the game before taking a lead with under two minutes only to allow a 75-yard touchdown drive in a 29-27 loss to the previously winless Lions on Sunday.
Minnesota fell to 5-7 after dropping its fourth that has been decided on the final play.
Detroit improved to 1-10-1 and snapped the franchise's 15-game winless streak, as well as an eight-game losing streak in the series.
Amon-Ra St. Brown caught an 11-yard pass from Jared Goff as time expired to cap his day with 10 catches for 86 yards and the score.
The late-game heroics for Detroit undid a furious Vikings comeback effort and prolific day from Justin Jefferson, who finished with 11 catches for 182 yards and a score.
Minnesota trailed 20-6 at halftime and 23-15 at the start of the quarter.
Kirk Cousins completed a 5-yard touchdown pass to K.J. Osborn, but a 2-point conversion run failed, so the Vikings trailed 23-21 with 11:57 remaining.
View game action photos between the Vikings and Lions during the Week 13 matchup at Ford Field.
Detroit tried to close the game by going for it on fourth-and-1, but Goff was sacked by Blake Lynch, who forced a fumble and recovered the ball at the Detroit 19-yard line with 4:01 remaining.
The Vikings were methodical, trying to take time off the clock and forcing the Lions to exhaust their timeouts.
Cousins hit Jefferson on third-and-goal from the 3, but Minnesota suffered its third failed 2-point conversion play of the day.
Cousins finished 30-of-40 passing for 340 yards and two touchdowns for a passer rating of 116.7.
Vikings receiver Adam Thielen suffered an ankle injury after catching a short pass early in the game. Osborn added 47 yards, and Tyler Conklin totaled 56 yards on seven catches.
The Vikings allowed just two conversions on third downs by the Lions, but both occurred on the game-winning drive.
Detroit picked up a third-and-10 with a 13-yard pass to Godwin Igwebuike and a third-and-6 with a 10-yard pass to Hockenson.
Q1, 6:49 remaining
Vikings 3, Lions 0
Greg Joseph kicks a 41-yard field goal [5 plays, 18 yards, 2:51 time of possession]
Settling: The Vikings took over at the Lions 41-yard line after a stand on fourth and gained 18 on a pass to Justin Jefferson to start the drive. Throws behind the line of scrimmage on second-and-6 and third-and-8 each lost 2 yards, backtracking the ball from the 19.
Q1, 0:59 remaining
Vikings 6, Lions 0
Joseph kicks a 31-yard field goal [10 plays, 53 yards, 4:11 time of possession]
Costly TFL: The Vikings advanced the ball to the 9-yard line and faced first-and-goal but lost 4 on a run by Alexander Mattison before consecutive incompletions.
Q2, 13:50 remaining
Lions 7, Vikings 6
T.J. Hockenson catches a 9-yard pass from Jared Goff (Riley Patterson kicks PAT) [5 plays, 69 yards, 2:09 time of possession]
With ease & a penalty: The Lions gained 8 or more yards on four of the five plays during the drive. The big haul was a 25-yard pass down the middle of the field to Hockenson. Safety Xavier Woods was flagged for unnecessary roughness while making the tackle, moving the ball to the 13.
Q2, 9:45 remaining
Lions 14, Vikings 6
Brock Wright catches a 23-yard pass from Goff (Patterson kicks PAT) [3 plays, 56 yards, 1:23 time of possession]
Sudden change: The Lions struck quickly after Kirk Cousins fumbled during a sack by Charles Harris.
Q2, 1:33 remaining
Lions 17, Vikings 6
Patterson kicks a 31-yard field goal [13 plays, 77 yards, 5:33 time of possession]
Hot drive: Goff opened the possession by completing his first four of five passes for 45 yards.
Q2, 0:06 remaining
Lions 20, Vikings 6
Patterson kicks a 41-yard field goal [5 plays, 32 yards, 0:26 time of possession]
Quick turn: The Lions quickly capitalized after Minnesota was unsuccessful on a fourth-and-10 from the Detroit 42-yard line.
Q3, 9:26 remaining
Lions 20, Vikings 9
Joseph kicks a 31-yard field goal [11 plays, 60 yards, 4:47 time of possession]
Hamming it up: A well-designed pass play to C.J. Ham resulted in a gain of 20, but the drive stalled after a holding penalty by Tyler Conklin. The tight end nearly got both feet down on a touchdown but his left foot hit out of bounds.
Q3, 6:13 remaining
Lions 20, Vikings 15
Alexander Mattison rushes for 8 yards (2-point conversion run no good) [5 plays, 67 yards, 1:36 time of possession]
Aggressive at the start: Cousins connected with Jefferson for a gain of 48 to begin the possession.
Q3, 1:56 remaining
Lions 23, Vikings 15
Patterson kicks a 49-yard field goal [8 plays, 44 yards, 4:17 time of possession]
Surviving: The Vikings defense was able to halt the drive after a 17-yard pass interference penalty against Bashaud Breeland moved the ball to the Minnesota 36.
Q4, 11:57 remaining
Lions 23, Vikings 21
K.J. Osborn catches a 5-yard pass from Cousins (2-point conversion run no good) [10 plays, 75 yards, 4:59 time of possession]
Q4, 1:50 remaining
Vikings 27, Lions 23
Jefferson catches a 3-yard pass from Cousins (2-point conversion pass fails) [6 plays, 19 yards, 2:11 time of possession]
Q4, 0:00 remaining
Lions 29, Vikings 27
Amon-Ra St. Brown catches an 11-yard pass from Goff (no extra point or conversion attempted) [14 plays, 75 yards, 1:50 time of possession]