Matt Prater kicked a 29-yard field goal with 1:28 left and Darius Slay made an over-the-shoulder interception on the next snap, helping the Detroit Lions hand Carson Wentz his first loss with a 24-23 victory over the Philadelphia Eagles on Sunday.
The Lions (2-3) had lost three straight.
The Eagles (3-1) turned the ball over for the first time this season with 2:34 remaining when Ryan Matthews fumbled on a hit by Slay. The loose football was recovered by Tyrunn Walker at the Philadelphia 45.
Matthew Stafford set up the game-winning kick by converting a third-and-4 from the Eagles 39 with a perfectly placed pass on a crossing route to Golden Tate, who drew an unnecessary roughness penalty on Malcom Jenkins.
Philadelphia had the ball at its 25 with 1:28 remaining and no timeouts left. Wentz, who did not turn the ball over in his first three games, heaved a pass to Nelson Agholor on first down and Slay made the game-sealing interception at the Detroit 23.
The Lions scored on all three of their drives in the first half, building a 21-7 lead late in the second quarter.
Stafford threw two TD passes to Theo Riddick in the first quarter and another to Marvin Jones in the second. The Eagles hadn't given up a passing touchdown, a point in the first quarter or allowed offenses to combine to score three TDs through three games.
Eagles defensive coordinator Jim Schwartz, who led the Lions from 2009 to 2013, seemed to make some adjustments.
The Lions gained just 19 yards on the first four possessions, fumbling once and punting three times.
Philadelphia, meanwhile, opened the second half with Wentz capping a nine-play, 75-yard drive with a 1-yard TD pass to Josh Huff.
Stafford's unforced fumble on the ensuing drive was recovered by Nigel Bradham, who was arrested last Sunday on a misdemeanor concealed weapons charge, at the Lions 16.
The Lions held Philadelphia to a field goal, allowing them to cling to a 21-20 lead.
Caleb Sturgis' 49-yard field goal, his third, put the Eagles ahead for the first time with 6:45 left, but they couldn't hold on.
INJURIES: Eagles CB Leodis McKelvin returned after missing the last two games with a hamstring injury, aggravated it, but was cleared to return in the fourth quarter. ... Lions DT Haloti Ngata left the game with a shoulder injury.
UP NEXT: The Eagles play at Washington Sunday. The Lions host Los Angeles on Sunday.