Cubs sweep the Giants in San Francisco behind Travis Wood's big day.

Travis Wood homered and pitched four-hit ball over seven innings 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 10.

Wood (7-7) allowed an unearned run while walking four and striking out seven.

Wood was 1-4 over his previous nine games.