Matt Cain and three relievers combined on a two-hitter, Buster Posey homered and the NL West-leading San Francisco Giants beat Carlos Zambrano and the Chicago Cubs 1-0 on Tuesday.

Cain and Zambrano each pitched six scoreless innings, but the Giants did just enough to prevail. Leading San Diego by a half-game and Colorado by 1½ when the night began, San Francisco finally broke through with one out in the eighth when Posey drove a 3-1 pitch from Andrew Cashner (2-6) to center field, pumping his fist as he rounded the bases.

His 15th homer gave him 62 RBIs — the most by a Giants rookie since Chili Davis' 76 in 1982.

In a game that was delayed for more than an hour by rain at the start, Cain and Zambrano sailed along before being lifted for pinch hitters.

The only hits the Cubs got were a single up the middle by Kosuke Fukudome in the second and a check-swing single to single to short by Blake DeWitt in the sixth. Zambrano gave up just three and struck out eight, although he did walk five while throwing 116 pitches.

Both were backed by some solid defense, too, but in the end, the Giants snapped Chicago's six-game win streak.

Ramon Ramirez (1-3) worked a perfect seventh for San Francisco, and Sergio Romo retired the side in the eighth. Brian Wilson pitched a perfect ninth for his major league-leading 44th save in 48 chances, leaving him four shy of Rod Beck's single-season club record.

The game was the Cubs' first since part of a broken bat punctured Tyler Colvin's chest, and there were several scares in this one.

There was a loud groan in the third when San Francisco's Cody Ross lost his as he struck out swinging. The bat went flying down the third-base line and landed near umpire Brian Runge, who saw it coming and didn't have to move.

On the game's final pitch, fans behind the third-base dugout scattered when part of Marlon Byrd's sawed-off bat went flying into the stands on a groundout to third.

Colvin remains in stable condition in a Miami hospital after a scary injury in Sunday's 13-3 win over the Marlins, when he was struck by a sliver of Welington Castillo's broken bat while on third. Castillo doubled on the play and Colvin scored.

That chilling scene came at a time when the Cubs are winding down a miserable season with some of their best ball in recent memory. They're on their longest win streak since a seven-game run in Aug. 2008, and were coming off an 8-1 trip that ranks as the most successful of nine or more games in the franchise's history.

But the Giants started what could be a difficult road swing on a good note, with a weekend series against a Rockies team that has wiped out most of an 11-game deficit up next.

Notes: Giants CF Andres Torres, recovering from an appendectomy, has started taking light swings, and manager Bruce Bochy hopes to have him back for the weekend series at Colorado. Torres had emergency surgery in San Diego on Sept. 12. ... The Cubs placed Colvin and C Geovany Soto, who had right shoulder surgery Monday, on the 15-day disabled list. They also activated P Esmailin Caridad from the 60-day disabled list and optioned him to Double-A and designated P Mitch Atkins for assignment.