LOS ANGELES — Madison Bumgarner scattered four hits over eight scoreless innings, Pablo Sandoval drove in both runs and the San Francisco Giants defeated the Los Angeles Dodgers 2-1 on Monday night to regain the NL West lead by a half-game.

LOS ANGELES — Madison Bumgarner scattered four hits over eight scoreless innings, Pablo Sandoval drove in both runs and the San Francisco Giants defeated the Los Angeles Dodgers 2-1 on Monday night to regain the NL West lead by a half-game.

Bumgarner pitched his second scoreless outing of the season for the Giants, who have won six of their last nine games and 11 of 17. They erased the Dodgers' half-game lead in a division race that has seen the rivals frequently swap leads.

Bumgarner (14-7) struck out 10 and walked none to even his road record at 6-6.

Javier Lopez got the final out in the ninth to earn his second save in four chances after Hanley Ramirez homered with two out in the inning against Sergio Romo, preventing what would have been the Giants' fourth shutout of the season against the Dodgers.

Nationals 5, Braves 4

At Washington, Chad Tracy hit a game-ending RBI single in the 13th inning and Washington topped Atlanta.

Washington grabbed a six-game lead in the NL East, handing Atlanta its third straight loss.

Phillies 12, Reds 5

At Philadelphia, John Mayberry Jr. hit a two-run homer and Ryan Howard and Erik Kratz had solo shots to help Roy Halladay get the victory for Philadelphia.

Halladay (7-7) wasn't sharp, allowing five runs and 10 hits in seven innings. But the offense bailed out the two-time Cy Young Award winner.

Marlins 12, Diamondbacks 3

At Phoenix, Giancarlo Stanton homered twice, including the first of back-to-back home runs during Miami's nine-run fourth inning.

Justin Ruggiano homered after Stanton, and Jose Reyes had four hits — including three doubles — scored twice and drove in a run for the Marlins, who have won three of four.

Brewers 9, Cubs 5

At Milwaukee, Jonathan Lucroy hit two home runs and the Brewers scored eight runs in the fifth inning to rally for the victory.

The Brewers sent 11 batters to the plate and recorded seven hits in their biggest inning since they scored nine times in the second in an 11-6 victory over the Los Angeles Dodgers on May 5, 2010.

Rockies 3, Mets 1

At New York, Tyler Colvin hit a tying homer off R.A. Dickey in the fifth inning, then made a diving play in the eighth to help Colorado get the victory.

Jonathan Herrera bunted for a hit in the top of the eighth and made his way around the bases with help from some inept defense, putting the Rockies in front 2-1.

Padres 3, Pirates 1

At San Diego, Edinson Volquez struck out 10 and Will Venable drove in two runs to lift the Padres to a victory over the Pirates.

The loss comes on the heels of Pittsburgh's 19-inning 6-3 victory at St. Louis on Sunday afternoon.

Rangers 5, Orioles 3

At Arlington, Texas, Ryan Dempster pitched eight innings, his longest outing in more than two months and his best since being traded to Texas, and the AL West-leading Rangers beat Baltimore.

Dempster (2-1 in Texas, 7-6 overall) retired the last 11 batters he faced. The right-hander acquired from the Chicago Cubs on July 31 allowed one run and four hits.

Rays 5, Royals 1

At St. Petersburg, Fla., Tampa Bay's Jeremy Hellickson pitched seven innings for his first home win in three months.

Hellickson (8-8) allowed one run and six hits in ending a stretch of seven consecutive home winless starts, dating to a 2-1 victory over Boston on May 16.

White Sox 9, Yankees 6

At Chicago, Alexei Ramirez hit a tiebreaking two-run homer in the seventh, Adam Dunn added his major league-leading 36th an inning later and Chicago ended a three-game losing streak.

Ramirez connected with two outs in the seventh off Boone Logan (4-2) for his seventh homer of the season.

Mariners 5, Indians 3

At Seattle, Michael Saunders hit two two-run home runs to help Seattle to its sixth straight victory.

Eric Thames had a solo shot for the Mariners in the sixth inning as well as a triple in the eighth.

The Mariners have won 13 of their last 14 games at Safeco Field. It's the best home stretch over 14 games in club history.

Twins 7, Athletics 2

At Oakland, Calif., Josh Willingham drove in two runs against his former team and Joe Mauer hit a two-run single as Minnesota snapped Oakland's four-game winning streak.

Brian Duensing (3-8) struck out seven and walked one in six innings for the Twins.