CHICAGO -- Robbie Gould made all five of his field-goal attempts, including a go-ahead kick with 4 seconds to go, and the San Francisco 49ers rallied for a 15-14 win over the Chicago Bears on Sunday afternoon at Soldier Field.
Quarterback Jimmy Garoppolo completed 26 of 37 passes for 293 yards in his first start with the 49ers. He engineered a 14-play, 86-yard scoring drive in the final six minutes to set up Gould's final field goal.
San Francisco (2-10) won for the second time in the past three games and earned its first road victory of the season.
Bears quarterback Mitchell Trubisky completed 12 of 15 passes for 102 yards and a touchdown in the loss. Tarik Cohen added a 61-yard punt return for a touchdown.
Chicago (3-9) lost its fifth straight game and dropped to 2-5 at home.
Gould drilled a 24-yard field goal in the waning seconds to complete the 49ers' comeback. He turned and screamed toward the Bears' sideline after making the kick. The Bears released Gould before the start of the 2016 season.
Chicago led 14-9 at halftime, but San Francisco cut the deficit to 14-12 on a 34-yard field goal by Gould with 1:57 to go in the third quarter.
Wide receiver Dontrelle Inman scored the Bears' first touchdown when he hauled in an 8-yard pass from Trubisky with 10 seconds remaining in the first quarter. Cohen followed with an electrifying, 61-yard punt return touchdown in the second quarter as he retreated 15 yards before reversing direction and finding daylight along the left sideline.
Gould made three field goals in the first half to account for San Francisco's first nine points.
The 49ers outgained the Bears 388-148 and controlled time of possession by a margin of nearly 2-to-1.
NOTES: Bears RB Tarik Cohen became the first rookie since Gale Sayers in 1965 to notch a receiving touchdown, a rushing touchdown, a passing touchdown and a punt return for a touchdown in a single season, according to the NFL. ... 49ers QB Jimmy Garoppolo threw his first career interception on his 104th career pass attempt. Bears CB Kyle Fuller pried the ball from the hands of 49ers WR Louis Murphy Jr. for the takeaway. ... Bears LB Danny Trevathan returned to action after missing the previous three games because of a calf injury. ... 49ers RT Trent Brown started despite being limited in practice all week with a shoulder injury. ... Bears CB Bryce Callahan (knee) missed his fourth straight game.