MIAMI — Washington lefty Gio Gonzalez lost his no-hit bid in the ninth inning when Dee Gordon led off with a clean single, and the Nationals beat the Miami Marlins 1-0 Monday night.

Gonzalez was pulled after Gordon hit a soft liner the opposite way to left-center field. He threw 106 pitches.

Gonzalez (9-5), who grew up in nearby Hialeah, walked three, hit a batter and struck out five. He retired 14 in a row during one stretch.

Sean Doolittle relieved and got NL home run leader Giancarlo Stanton to ground into a double play. After Christian Yelich beat out an infield single, Marcell Ozuna popped out, giving Doolittle his fourth save since being acquired from Oakland and seventh this season.

The game was the Nationals’ first at Marlins Park since ace Max Scherzer took a no-hitter into the eighth but lost on June 21. There has been only one no-hitter in the majors this year – Miami’s Edinson Volquez threw it at this ballpark last month against Arizona.

Jose Urena (9-5) matched zeroes with Gonzalez until the sixth, when Bryce Harper’s RBI single put the Nationals ahead. Urena allowed just three hits in eight innings.

PHILLIES 7, BRAVES 6: Odubel Herrera and Maikel Franco hit homers, Nick Pivetta threw six sharp innings and Philadelphia beat Atlanta to complete a four-game sweep in Philadelphia.

Pivetta (4-6) gave up one run and three hits, striking out five.

Kurt Suzuki and Freddie Freeman went deep for Atlanta. Braves starter Mike Foltynewicz (9-6) allowed five runs and seven hits in four innings.

Philadelphia has won five in a row and is 10-6 since the All-Star break, but still owns the worst record (39-64) in the majors. The Phillies are 7-0 against Atlanta at Citizens Bank Park this season. They posted their first four-game sweep of the Braves at home since September 1949.

This was the Phillies’ first four-game sweep against anyone since July 2014 at Milwaukee and first at home since June 2011 vs. the Marlins.

AMERICAN LEAGUE

ORIOLES 2, ROYALS 1: Craig Gentry singled home the winning run with two outs in the ninth inning, and host Baltimore cooled off Kansas City.

Manny Machado had two hits and scored a run for the Orioles, who have won three straight.

Caleb Joseph got Baltimore going in the ninth with a one-out single off Joakim Soria (4-3). Ruben Tejada singled with two outs before Gentry hit a grounder up the middle that sent Joseph home from second base without a throw.

It was the second loss in 12 games for the Royals, who managed only five hits off three Baltimore pitchers.

Zach Britton (1-0) – the subject of many rumors before the nonwaiver trade deadline ended Monday afternoon – worked the ninth for the Orioles.

YANKEES 7, TIGERS 3: Aaron Judge broke out of a slump with his 34th home run, regaining sole possession of the major league lead, and Chase Headley sparked New York at the plate in its victory at home over Detroit.

Luis Severino beat Michael Fulmer in a matchup of young All-Stars on the mound, though neither was at his best. Hours after the Yankees acquired Sonny Gray from Oakland at the trade deadline, Headley put the AL East leaders ahead to stay with a two-run double in a four-run fourth inning.

Todd Frazier followed with a two-run single, and Judge hit a solo shot in the fifth. Headley finished with three hits as New York won for the ninth time in 11 games.

Severino (8-4) needed a career-high 116 pitches to get through five innings.