NEW YORK -- Left-hander Madison Bumgarner threw a two-hit shutout Sunday afternoon, and Hunter Pence hit two homers and collected four RBIs as the San Francisco Giants routed the New York Mets 9-0 at Citi Field.

Catcher Buster Posey went 4-for-5 with a two-run homer and three RBIs for the Giants, who won for the third time in four games to ensure they would retain at least a share of the lead in the National League wild-card race.

The Mets have just eight hits in the first three games of the four-game series.

Bumgarner (13-8) issued his lone walk to the right fielder Curtis Granderson leading off the first and lost his no-hit bid when Mets second baseman Wilmer Flores doubled to deep left field leading off the third. However, the southpaw set down the next 13 before David Wright's broken bat single to shallow right in the seventh.

Bumgarner, who also scored two runs, recorded his second career shutout and fourth complete game. He struck out 10.

Orioles 1, Mariners 0

BALTIMORE -- Chris Tillman threw seven innings of four-hit ball, Nick Markakis homered, and Baltimore took the three-game series.

The Orioles also recorded a fourth consecutive series win for the first time this season. The Mariners concluded a six-game road trip in which they went 3-3.

Tillman (8-5) struck out six and snapped a six-game winless streak, picking up his first victory since June 27 against Tampa Bay. However, he did not give up more than three runs in a start over that slide.

Nationals 4, Phillies 0

WASHINGTON -- Stephen Strasburg threw seven shutout innings and Washington scored an unearned run in the third to take the lead against Cole Hamels en route to the victory.

Strasburg (8-9) allowed just three hits with 10 strikeouts with one walk to outduel Hamels (6-6), who gave up one unearned run and four hits with six strikeouts in seven innings. Tyler Clippard pitched the eighth for Washington and closer Rafael Soriano threw the ninth as the Nationals shut out the Phillies for the second game in a row.

The Nationals added three insurance runs in the eighth on RBI doubles by Anthony Rendon and Jayson Werth and a run-scoring wild pitch.

Tigers 4, Rockies 0

DETROIT -- Anibal Sanchez struck out a season high 12 batters over seven two-hit innings and Victor Martinez hit a three-run home run to help Detroit complete a sweep of the three-game series.

Sanchez (8-5) got one inning of relief help each from Joba Chamberlain and Joakim Soria in Detroit's sixth shutout of the season, a combined four-hitter.

The Tigers made one error behind Sanchez, and he did not walk a batter in his 117-pitch outing. It was the 10th time Detroit's career single-game strikeout record holder (17) fanned 10 or more hitters in his career.

Reds 7, Marlins 3

MIAMI -- Cincinnati pounded out 15 hits and stole three bases to beat Miami. It was the most runs the Reds scored since June 28, when they beat the San Francisco Giants 7-3.

The Reds, who entered this series having lost 10 of their previous 12 games, turned things around against the Marlins, winning three of four.

Cincinnati's Mike Leake (9-9) allowed a season-high four walks but gave up just three hits and one run in six innings.

Indians 4, Rangers 3 (12 innings)

CLEVELAND -- Michael Brantley led off the bottom of the 12th inning with a home run as Cleveland rallied to complete a three-game weekend sweep.

With the Indians trailing 3-1, right fielder David Murphy tied the game with a dramatic two-run homer in the bottom of the ninth.

Brantley, the first batter in the bottom of the 12th, belted a 3-2 pitch from right-hander Phil Klein (0-1) over the right field wall for his 16th home run.