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 was 4-for-5 with a two-run homer and three RBIs for the Giants (60-51), 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 (53-58) have just eight hits in the first three games of the four-game series.

Bumgarner continued the Giants' run of sterling pitching this weekend, though he didn't carry a no-hitter into the sixth inning like right-hander Ryan Vogelsong did Friday -- when he threw a two-hit complete game -- or a perfect game into the seventh like right-hander Jake Peavy did Saturday.

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.

But the southpaw set down the next 13 before third baseman David Wright's broken bat single to shallow right in the seventh.

Bumgarner, who also scored two runs, needed just 94 pitches -- 75 strikes -- for 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 the Orioles took the three-game series.

Baltimore also got its fourth consecutive series win for the first time this season. The Orioles improved to a major league-best 21-11 against the American League West, despite scoring just six runs over the three days.

The Mariners concluded a six-game road trip where 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 had not given up any more than three runs over that slide.

Andrew Miller appeared for the second time in three games since being acquired from Boston and pitched a perfect eighth for the Orioles (62-48). Zach Britton picked up his 23rd save.

Nationals 4, Phillies 0

WASHINGTON -- Stephen Strasburg, in his 99th career start, 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.

Catcher Jose Lobaton reached on an error by Cody Asche, the third baseman for the Phillies. Lobaton advanced to second on a sacrifice bunt by Strasburg and then scored on a two-out single to right-center by Denard Span.

Span (two hits, one walk), the Nationals' center fielder and leadoff man, has now reached base in 29 games in a row with either a hit or walk.

The Nationals added three insurance runs in the eighth on RBI doubles by third baseman Anthony Rendon and right fielder Jayson Werth against rookie reliever Ken Giles to make it 3-0. Werth then scored on a wild pitch by reliever Jake Diekman to give the Nats a 4-0 lead.

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 Sunday to power the Tigers.

Detroit's win completed a sweep of the three-game series.

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

The Tigers made one error behind Sanchez but he did not walk a batter and thus faced just three over the minimum in his 117-pitch outing. It was the 10th time Detroit's career single-game strikeout record holder (17) has fanned 10 or more hitters in his career and fourth time with at least a dozen.

Reds 7, Marlins 3

MIAMI -- Cincinnati pounded out 15 hits and stole three bases to beat Miami.

It was the most runs the Reds have scored since June 28 when they beat the San Francisco Giants 7-3.

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

Miami (54-57) finished a disappointing seven-game homestand at 3-4.

The win went to Mike Leake (9-9), who allowed a season-high four walks but gave up just three hits and one run in six innings.

Jacob Turner (4-7) took the loss, tying a season worst by lasting just four innings. He gave up nine hits, two walks and five runs.

Indians 4, Rangers 3, 12 innings

CLEVELAND -- Michael Brantley led off the bottom of the 12th inning with a home run as the Indians rallied to beat the Rangers.

Trailing 3-1, Indians right fielder David Murphy tied the game with a dramatic two-run homer in the bottom of the ninth to force extra innings.

The Indians' victory completed a three-game weekend sweep at Progressive Field.

The win went to right-hander Scott Atchison (5-0), the last of seven Cleveland pitchers.

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.

In the bottom of the ninth, pinch hitter Chris Dickerson, batting for designated hitter Nick Swisher, drew a walk off Texas closer Neftali Feliz. Murphy, the former Ranger, hit Feliz's first pitch into the seats in right center field for a game-tying home run, his seventh of the season.

Astros 6, Blue Jays 1

HOUSTON -- Scott Feldman tossed his first complete game of the season and Houston rode a third consecutive strong start and a four-game series victory.

The right-handed Feldman (5-8) wobbled his way through his first three innings, facing 14 batters and needing a pair of inning-ending double plays to limit the damage to one run despite allowing six hits and two walks. When he returned to the hill with a 2-1 lead in the fourth, Feldman hit a groove.

Astros designated hitter Chris Carter supplied Feldman that one-run lead with his two-run single in the third against Blue Jays right-hander Marcus Stroman (7-3), rallying from an 0-2 hole with two outs before plating center fielder Jake Marisnick and second baseman Jose Altuve.

Cardinals 3, Brewers 2

ST. LOUIS -- Dominated for six innings by Milwaukee starter Matt Garza, St. Louis feasted on the Brewers' relievers and made a winner of John Lackey in his first start with the club.

The Cardinals bunched five of their six hits into the bottom of the seventh inning, scoring all of their runs for the win, which brought them within a game of the Brewers in the National League Central.

Lackey (12-7), who was acquired Thursday morning from Boston, pitched seven innings. He allowed seven hits and two runs, walking none and fanning four.