Bears kicker Justin Tucker was the big winner, scoring a 41-yard field goal with 1:04 remaining in regulation.
The Bears then went on to beat the Bears 27-17 at Soldier Field.
“We did a good job of getting the ball out of the end zone,” Bears coach Lovie Smith said.
“There were some nice plays that we made.”
G.J. Kinne kicked two field goals, and Taylor Mays missed a 49-yarder for Chicago (7-4).
Bears kicker Evan Brown was also big in the game, scoring two field goal attempts, but missed a 26-yard attempt.
“I think we did a great job of executing, getting the right looks at the right time, making the right plays,” Kinne said.
The Packers (5-7) are off this week, as they face a Minnesota team that has lost seven straight.
They also have two games against teams ranked in the top 10, including the Packers, who have won five straight.
The Lions are at Atlanta, where they will play the Falcons on Sunday night.
They host the Packers on Sunday.
The Falcons beat the Packers 20-20 at home in Week 2.
“It’s a tough game for us,” Lions coach Jim Caldwell said.
He said he will be looking for a big play from his offensive line.
“When we do have that opportunity, we’ve got to make it count,” he said.
Detroit is 2-6 on the road, but the Lions are winning all four games in Detroit.
Detroit’s offense has been struggling in recent weeks, with three touchdown passes in the past two games.
The defense has played well, giving up just three points in the two games that the team has lost.
The two teams are meeting for the second time this season.
This is the third meeting between the teams this season, and the first time both teams were in the playoffs.
Detroit led 13-3 early in the second quarter before the Packers scored five unanswered points to pull within 11-10.
The teams played the final minutes of regulation before the Lions scored two touchdowns to take a 20-17 lead.
The game was tied at 17 at halftime.
The score remained tied until the third quarter, when the Packers had a 3-yard touchdown run by rookie running back Dalvin Cook.
“A lot of people will remember the last time we played them,” Lions quarterback Matt Stafford said.
“(We) put our heads down and tried to play as good a football game as we could.”
The Packers made a big run, but they couldn’t score until the Bears scored a touchdown on a 3 with 6:36 left in the first quarter.
The first Lions drive was stopped by a flag and the Packers’ fourth possession of the game.
On their next possession, quarterback Matt Ryan threw an interception and the Lions’ defense returned the ensuing kickoff 46 yards to set up a field goal.
After a Packers punt was recovered by the Lions, Evan Brown caught a pass from Josh Gordon, and scored a 5-yard TD pass to put the Lions up 29-24 with 1 minute, 33 seconds left in regulation on a 1-yard run by Joe Mixon.
Mixon then had a touchdown run, scoring on a 5 yard run, and a 2-yard scoring pass to take his season total to 43 points.
On the next drive, Mixon had a 27-yard pass to Josh Jones that gave the Lions a 38-24 lead.
A 3-and-out by the Packers forced a fumble, and then Mixon kicked a 23-yard Field Goal.
The last Lions possession was the final one before the end of regulation, when Mixon threw a 24-yard short-field pass to Jaelen Strong.
“He did a lot of things,” Brown said.
Brown finished the game with a career-high 109 receiving yards, including a career high-tying 15 receptions for 180 yards and two touchdowns.
The next Packers drive was halted by a fumble.
The second Packers touchdown came on a 17-yard kickoff return, and Evan Brown threw a 17 and a 27 yard passes to Josh Gordon.
Gordon caught the ball at the 25, returned it 38 yards, and returned it 47 yards for the score.
“Our defense really came through,” Mixon said.