Justin Upton, Freddie Freeman and Gattis all doubled to lead off what became a five-run fourth, Atlanta's biggest inning since a five-run fifth against Philadelphia on Aug. 2. Kris Medlen (13-12) was the beneficiary that night against the Phillies and again on Monday, getting the win after allowing six hits and two runs in 6 1-3 innings.
Atlanta (86-57) passed idle Boston (87-58) for baseball's best record.
Chris Coghlan tied a career high with four hits for Miami, which lost for the 24th time in its last 34 games. Ed Lucas added a two-run double in the seventh for the Marlins.
Marlins starter Henderson Alvarez (3-4) gave up no hits in the first three innings, before Atlanta got to him in the fourth.
Craig Kimbrel worked the ninth for his 45th save in 48 tries. Atlanta has not lost more than four straight at any point this season.
CUBS 2, REDS 0
CINCINNATI (AP) — Travis Wood beat Cincinnati for the first time in his career, repeatedly pitching out of threats for seven innings.
Wood (9-11) finally beat the team that traded him after the 2011 season. He was 0-4 in his career, including three losses this season. He allowed six hits and fanned seven.
Kevin Gregg gave up a double in the ninth while earning his 31st save in 35 chances.
Ryan Sweeney and Luis Valbuena homered off Bronson Arroyo (13-11), who had won his last four starts against the Cubs. Arroyo allowed seven hits over seven innings, striking out six.
The Reds were coming off a week when they got six wins in seven games against St. Louis and the NL West-leading Dodgers.
Cincinnati is 13-4 against the Cubs this season. Overall, Cincinnati has won 12 of its last 15 and 22 of its last 27 against Chicago.
NATIONALS 9, METS 0
NEW YORK (AP) — Gio Gonzalez was inches from a no-hitter and Washington hit five home runs in the rout.
Gonzalez (10-6) held the overmatched Mets hitless into the seventh before pinch-hitter Zach Lutz broke up the bid with a soft single for New York's only hit. Lutz swung at the first pitch of the inning and hit a looper that landed on the first base line, taking out a chunk of chalk well behind the bag.
The left-hander struck out eight and walked two for his second career shutout and fourth complete game, improving to 5-0 in his last six starts against the Mets.
Denard Span and Ryan Zimmerman hit back-to-back homers to start the game. Jayson Werth and Tyler Moore also connected off Carlos Torres (3-4), roughed up by Washington for the second time in six weeks. Wilson Ramos added a three-run shot off reliever Greg Burke.
The Nationals won their third straight and fifth in six games.
GIANTS 3, ROCKIES 2, 10 innings
SAN FRANCISCO (AP) — Brandon Belt's RBI single with one out in the bottom of the 10th gave San Francisco its second straight walkoff win.
The defending World Series champions, however, were eliminated from contention in the NL West earlier in the evening when the Los Angeles Dodgers beat the Arizona Diamondbacks.
Angel Pagan hit a one-out single off reliever Adam Ottavino (1-3) and took third on Marco Scutaro's single. Belt, who doubled in the tying run in the eighth, hit a 1-2 pitch over the head of left fielder Charlie Culberson for his second game-ending hit this season.
D.J. LeMahieu singled and doubled to extend his career-high hitting streak to 11 games, and Nolan Arenado scored from second base on an infield groundout for the Rockies.
Buster Posey hit his 15th home run of the season for San Francisco.
DODGERS 8, DIAMONDBACKS 1
LOS ANGELES (AP) — Juan Uribe homered in each of his first three trips to the plate, and Los Angeles connected six times in all in reducing its magic number for clinching the NL West title to eight.
Adrian Gonzalez, Andre Ethier and Hanley Ramirez also went deep in the Dodgers' biggest power display in almost seven years.
Ricky Nolasco (13-9) won his seventh straight decision over eight starts.
Uribe beat out an infield single to third base in the seventh against Heath Bell to drive in the Dodgers' final run, capping his first four-hit game since April 23, 2001, against Atlanta.
It was the first time the Dodgers hit as many as six home runs in a game since Sept. 18, 2006, when they hit seven.
Uribe was the eighth player in the majors this season to hit three homers, and the first Dodger to do it since Ethier on June 26, 2009, against Seattle. It was Uribe's first three-homer game.
Los Angeles' first four homers came off Randall Delgado (4-6), who threw 70 pitches over 2 2-3 innings.Suggest a correction