Detroit Lions quarterback Matthew Stafford (9) points as he scrambles during the second half of an NFL football game against the Oakland Raiders, Sunday, Nov. 22, 2015, in Detroit

DETROIT — Matthew Stafford's toenail on his right, big toe was black and blue.

"I just tore it off," he said.

A win will likely ease the pain.

Stafford ran for a go-ahead 5-yard touchdown early in the fourth quarter on a drive that included him making a couple other key plays with his feet, helping the Detroit Lions beat the Oakland Raiders 18-13 Sunday.

"He had some timely runs," Lions coach Jim Caldwell said. "And, that was a good decision on the touchdown because he had a couple other options there. I think teams underestimate how quick he is."


The quarterback, who is not known as a threat to run, scored Detroit's first rushing TD since Week 3 on a designed draw.

"I just call him Sweet Feet," Lions running back Theo Riddick joked. "He's not the fastest guy, he's not the quickest, but he makes plays."

Earlier in the pivotal possession, Stafford moved up and around the pocket to make a shovel pass to Riddick to convert a third down, and escaped a collapsed pocket to get outside for a season-long 18-yard run.

"He was able to make some things happen with his feet," Raiders cornerback TJ Carrie said.

The Lions (3-7) have won consecutive games for the first time this year, and improved to 3-0 when running the ball at least 20 times. They were able to end the game by simply kneeling after picking up enough first downs on the ground, taking the last 7:22 off the clock.

"It's a great feeling for the offensive line when everyone, including the Raiders, knew we were going to run and we were still able to do it," Detroit offensive tackle Riley Reiff said.

Ameer Abdullah, Joique Bell and Riddick combined for 24 carries and 89 yards rushing. Stafford, who gained 31 yards on the ground, was 22 of 35 for 282 yards through the air.

The Raiders (4-6) have a season-high three-game losing streak. They have been limited to 27 points combined in the last two games after scoring at least 34 in the previous three.

Oakland had perhaps its worst game offensively, getting held to season lows in yards (214), yards rushing (50), yards passing (164) and first downs (13).

Derek Carr was 13 of 25 for 169 yards. Latavius Murray was held to a season-low 28 yards — gaining 16 on one run — on 13 carries.

The Raiders were called for delay of game twice, seemingly oblivious to the play clock.

"Just a little off in some of those situations," Oakland coach Jack Del Rio said.

Raiders rookie receiver Amari Cooper had season lows with one reception for 4 yards, and appeared to drop some of the other three passes thrown his way.

"For him to come out of a game with one catch, we've got to do a better job there," Del Rio acknowledged.

Matt Prater, who missed two extra-point kicks in last week's win at Green Bay, connected on 29- 41- and 51-yard field goals in the first half to cap lengthy drives to give Detroit a 9-0 lead at halftime.

The Raiders went ahead after their second drive of the third quarter. Murray's 1-yard touchdown run capped the opening possession of the second half and Sebastian Janikowski made a go-ahead, 48 yard field goal on Oakland's next possession.

After narrowly avoiding a safety because a holding penalty was just outside the goal line in the fourth, Raiders tackle Donald Penn was called for holding against Ezekiel Ansah in the end zone to give the Lions two more points and the final 18-13 lead.

"It should've been called the first time, so I'm glad we ended up getting those two points,"

The Lions mixed the run and pass well on the opening possession, driving to the Oakland 1 before getting pushed back because of a holding penalty. Eric Ebron dropped a pass in the end zone and the Lions settled for a field goal as they did on their next drive after Stafford overthrew Abdullah in the end zone.

"I missed Ameer by 6 inches," Stafford recalled. "The one to Ebron, we got to come down with it."