Joe Mather took advantage of a rare start with a go-ahead single during a three-run rally in the eighth inning Friday and the Chicago Cubs ended a four-game losing streak with a 5-3 victory over the Colorado Rockies.
The Rockies had matched a season best with a five-game winning streak.
Chicago trailed 3-2 going into the eighth before Brett Jackson led off with his second homer of the season.
Pinch hitter Luis Valbuena doubled with one out and Mather, batting in the leadoff spot usually occupied by David DeJesus, followed with an RBI single against reliever Matt Belisle (3-5).
Mather later scored on reliever Matt Reynolds' throwing error to first on Anthony Rizzo's grounder.
James Russell (6-1) got two outs for the win and Carlos Marmol closed for his 16th save.
The Rockies scored in the first on an error by shortstop Starlin Castro, a single by Jordan Pacheco and a wild pitch by Jeff Samardzija.
Chris Nelson made it 2-0 in the second with his sixth homer. Carlos Gonzalez led off the third with his 21st homer and first since July 23.
Alfonso Soriano and Wellington Castillo hit solo home runs in the Cubs fifth off Drew Pomeranz, making it 3-2.
Pomeranz left after the fifth. The home runs were the only hits he allowed.
Samardzija gave up two earned runs and six hits in seven innings, striking out seven.