Matthew Stafford threw for two touchdowns, including one to Calvin Johnson early in the fourth quarter, and the Detroit Lions beat the San Francisco 49ers 32-17 on Sunday.
The Lions (6-9) have won five of their last seven games, perhaps giving coach Jim Caldwell a chance to keep his job for a third season.
The 49ers (4-11) have lost three straight and five of six under first-year coach Jim Tomsula.
Detroit took advantage of several mistakes for San Francisco's defense and special teams.
Stafford's 1-yard TD pass to Johnson gave Detroit a 12-point lead one play after Tramaine Brock was called for pass interference in the end zone.