Travis Wood pitched a four-hitter over seven innings and had a home run among his two hits in helping the Chicago Cubs complete a three-game sweep in San Francisco for the first time in 20 years, beating the Giants 2-1 Sunday.
Welington Castillo also homered for the Cubs, who won their third straight and five of seven.
Pablo Sandoval drove in a run for the Giants, who have lost four straight and seven of eight.
Tim Lincecum (5-11) had two hits in addition to pitching seven innings. He gave up two runs and four hits. He walked two and struck out a season-high 10.
Wood (7-7) allowed an unearned run while walking four and striking out seven. Wood was 1-4 over his previous nine games. He's been involved in 10 one-run decisions.
Pedro Strop threw a scoreless eighth, his 12th consecutive scoreless outing (10 2-3 innings) since joining the Cubs on July 2.
Kevin Gregg recorded the final three outs for his 22nd save in 25 chances, and his third straight of the series.
Wood ended the scoreless tie with his third home run, a solo shot with two outs and on a 2-2 count, in the fifth. It was the first career home run Lincecum has allowed to an opposing pitcher.
Lincecum survived a shaky start to retire 13 of 14 batters until Wood took him deep.
The Giants left the bases loaded in the third and had the bases loaded with no outs in the fifth. Buster Posey's grounder to Luis Valbuena turned into a 5-2 double play before Sandoval doubled to tie the game.
Castillo hit his third home run with two outs in the seventh, giving the Cubs a 2-1 advantage.
The Giants, who have committed a major league-leading 76 errors, took fielding practice instead of batting practice before the game.
The Giants have hit one home run in each of their past four homestands, a span of 22 games.
NOTES: The Giants activated RHP Guillermo Moscosco, whom they acquired in a trade from the Chicago Cubs last week. RHP Yusmeiro Petit was designated for assignment to make room for Moscosco. ... The Giants are scheduled for a White House visit on Monday's day off before starting a series at Philadelphia on Tuesday. Giants Hall of Famer Willie Mays was asked to accompany the team to Washington D.C. and missed the Hall of Fame ceremonies. ... Wood's three HRs and eight RBIs are the most by any pitcher this year. ... The first inning lasted 31 minutes and the pitchers needed a combined 58 pitches to complete it. ... Cubs RHP Scott Baker (Tommy John surgery), who has not appeared in a major league game since Sept. 24, 2011, when he was with the Minnesota Twins, will make his fourth rehab start on Monday. He's 0-2 with a 13.50 ERA in his first three starts. ... RHP Jeff Samardzija (6-9, 3.94) starts for the Cubs when they open a four-game series with the Milwaukee Brewers on Monday night. ... LHP Barry Zito (4-7, 4.92) starts Tuesday night's game at the Philadelphia Phillies. He's 0-6 with a 9.89 ERA on the road.