CHICAGO -- Jeff Samardzija broke a personal five-game losing streak with both sharp pitching and his bat as the Chicago Cubs beat the Colorado Rockies 6-3 on Wednesday night.
Samardzija (2-5) matched a season-high eight innings of work on the mound and added a two-run home run in the second inning to support his cause.
The Cubs took two of three from the Rockies for their first series victory at Wrigley Field this season. They've now won four of their last five games.
Samardzija added a successful sacrifice bunt in the seventh as the Cubs scored three times to open a 6-2 lead.
His sacrifice moved Darwin Barney from second to third while David DeJesus reached base when he was hit by an Josh Outman pitch.
Starlin Castro's RBI single drove Barney home and Anthony Rizzo followed with a base hit to score DeJesus.
Outman departed in favor of Wilton Lopez, who got Alfonso Soriano to ground to short on a fielder's choice that scored Castro.
Samardzija's eight innings matched a 3-1 Opening Day effort at Pittsburgh, his only other 2013 victory. He allowed two earned runs on five hits, walked a pair and struck out seven.
Cubs left-handed reliever James Russell struck out the lone batter he faced in the ninth. Kevin Gregg then gave up an RBI single to Josh Rutledge with two out that cut the lead to 6-3. But Gregg then got Wilin Rosario to fly out to center and end the game.
John Garland (3-4) took the loss after working five innings.
DeJesus gave the Cubs a 1-0 lead, greeting Garland with a first inning lead-off home run. It was DeJesus' fifth overall and second lead-off homer of the season.
The Rockies matched the run in the second when Josh Rutledge singled home Todd Helton from third with one out.
Samardzija clubbed his second career home run to make it 3-1 with two out in the second. He took the first pitch he saw from Garland and launched a two-run shot into the left-field bleachers, which also brought home Barney.
Garland gave up two-out singles to DeJesus and Starlin Castro and walked Rizzo to load the bases in the bottom of the fifth for Soriano, the Cubs' cleanup hitter.
But Garland escaped as Soriano lined out to third baseman Nolan Arenado to end the threat.
Pinch-hitter Reid Brignac batted for Garland and belted a solo home run to center to lead off the sixth, cutting the Cubs lead to 3-2.
NOTES: The Cubs and Rockies meet again for three games between July 19-21 at Coors Field where Colorado swept Chicago last year. ... Colorado set a season-high with nine extra-base hits in Tuesday's 9-4 victory and it was the most in any National League game this season. ... The Rockies ranked second in the league with 128 extra-base hits entering Wednesday's game. Only the Cubs (135) had more. ... Jhoulys Chacin makes his ninth career start on Thursday against the Giants. He's 3-4 all-time with a 3.59 ERA. ... The Cubs are off before opening a three-game home weekend series on Friday against the Mets. ... Cubs lead-off batters were hitting .361 (13-for-36) entering Wednesday with three walks to start games. ... Through Tuesday, Rizzo had not struck out in 28 at-bats dating to the sixth inning on May 7 against the Cardinals. That was the second-longest streak in the majors, trailing only Baltimore's J.J. Hardy.