SAN FRANCISCO -- The Milwaukee Brewers, shut out for seven innings by Madison Bumgarner, took advantage of sloppy defense by the San Francisco Giants and a two-run single by Norichika Aoki to score four runs in the eighth en route to a 6-1 victory Wednesday night at AT&T Park.
The win was the second in a row for the Brewers over the Giants in the battle of last-place teams in their respective divisions.
The tight contest began as a pitchers' duel between the Brewers' Marco Estrada and Giants' Bumgarner.
Estrada, activated off the disabled list earlier in the day after having suffered a hamstring injury July 3 against Oakland, left after pitching five shutout innings, facing only one batter over the minimum. He retired the final 14 batters after surrendering the only hit he allowed, a one-out single by Brandon Crawford in the first inning.
Estrada, who exited a scoreless game, did not factor in the decision.
Bumgarner (11-7) took a two-hit shutout and 1-0 lead into the eighth inning, but never got an out in the inning and contributed to his own demise with a throwing error.
Khris Davis started the Brewers' uprising with a single to center field. He advanced to third when Yuniesky Betancourt, after taking two balls while attempting to bunt, swung away and smacked a double just over the head of Giants left fielder Roger Kieschnick.
The Giants played the infield back with Jeff Bianchi at the plate, and the Brewers' No. 8 hitter took advantage by hitting an RBI grounder to Crawford, the Giants' shortstop, scoring Davis with the tying run. When the usually reliable Crawford double-clutched on his throw to first, Bianchi reached safely with what was ruled a hit.
Pinch-hitter Logan Schafer then bunted toward Bumgarner, who hesitated throwing to third because third baseman Pablo Sandoval had slipped while returning to the base. Bumgarner's off-balanced throw was low and skipped past Sandoval for an error, allowing Betancourt to score and put the Brewers on top, 2-1.
Santiago Casilla replaced Bumgarner and got Rickie Weeks to ground to Sandoval for the first out. But Aoki then lined a single up the middle scoring Bianchi and Schafer to break the game open.
Bumgarner, who was attempting to become the first Giants pitcher in 44 years to pitch at least seven innings and allow three or fewer runs in 10 consecutive games, failed in his quest for a small piece of San Francisco history. He gave up four runs (three earned) in seven-plus innings.
In losing for the third time in his last four starts, Bumgarner allowed five hits and three walks. He struck out four.
Right-hander Alfredo Figaro (2-3), who pitched two innings in relief of Estrada, got the win despite allowing the only Giants run in the seventh.
Burke Badenhop and Michael Gonzalez completed the Brewers' four-pitcher, three-hit effort with one shutout inning apiece.
Davis' third home run of the year off Barry Zito in the ninth highlighted a two-run inning that completed the scoring.
The Giants finally broke through in the seventh to end a scoreless deadlock. Crawford worked a nine-pitch walk to get things going, and Brandon Belt followed with a single to right field, just San Francisco's second hit of the game.
Figaro got ahead of Buster Posey 0-2, but then seemed to cross up catcher Jonathan Lucroy with a high slider. Responding late to the pitch, Lucroy barely got a glove on the ball, which went to the backstop, advancing both runners.
Posey then belted the next pitch to left-center, and only a spectacular, diving catch by Davis, the Brewers' left fielder, prevented extra bases. It went for a sacrifice fly, with Crawford scoring the game's first run.
Figaro avoided further damage by getting Sandoval to ground to first with the infield in, then striking out Kieschnick.
The Brewers out-hit the Giants, 10-3.
The loss dropped the Giants' home record to 29-29.
Estrada, who had been limited to 47 pitches in his most recent injury-rehab start at Triple-A last Friday, was pulled after throwing 76 pitches in his five shutout innings.
The right-hander had entered the game with one of the National League's highest batting averages against (.275).
NOTES: The two teams complete their seven-game season series Thursday afternoon. The Brewers, who swept three from the Giants earlier this season in Milwaukee and split games Monday and Tuesday in San Francisco, have clinched the series. ... In order to activate Estrada, the Brewers optioned 2B Scooter Gennett to Triple-A Nashville. Gennett had a triple in Monday's series opener. ... Hunter Pence had batted leadoff 32 times before joining the Giants. He had a .320 on-base percentage in those games. ... Two other oddities in the Giants' starting lineup: Belt batted third (he had a five-strikeout game the only other time he hit third this season); and OF Jeff Francoeur started in center field (his first time as a Giant and just the fifth time in his career). ... Wednesday was the sixth anniversary of LF Barry Bonds' 756th home run, which gave him the all-time lead over Henry Aaron. An orange sign hangs at AT&T Park on a brick wall beyond the center-field fence where Bonds' home run off the Washington Nationals' LHP Mike Bacsik caromed.