MIAMI - Looks like we might have a race in the NL East after all.

The Mets lost to the Marlins in 11 innings Friday night, 6-5, on Martin Prado's walk-off double that scored Christian Yelich from first base at Marlins Park.

Prado hit a scorcher inside the first-base bag against Eric O'Flaherty with two outs. There was no throw home as Yelich scored easily on Prado's fifth hit of the game.

The Mets had tied the score with two outs on the ninth on three consecutive singles, the last by Kelly Johnson.

Earlier, the Nationals came from behind to beat the Braves, 5-2, in 10 innings, on a pinch-hit, walk-off, three-run home run by Michael Taylor. The Nationals tied it in the ninth on a two-out RBI single by former Met Matt den Dekker.

The Nationals trimmed the Mets' division lead to five games. The teams meet for a three-game series starting Monday in Washington.

The seventh inning continued to be a problem for the Mets. And that's no stretch.

Moments after Yoenis Cespedes had given the Mets a 4-3 lead with a two-run homer in the top of the seventh, Sean Gilmartin and Addison Reed combined to give it right back in the bottom half.

Reed allowed a tying RBI single and walked in the go-ahead run. The runs were charged to Gilmartin, who gave up singles to the two batters he faced.

The Mets rallied against Miami closer A.J. Ramos. They were down to their last out with no one on base when Travis d'Arnaud and Juan Uribe singled to put runners on first and third and Johnson tied it at 5 with an RBI single to center.

Wilmer Flores walked to load the bases, but Ramos got Kirk Nieuwenhuis to ground to the catcher for the third out.

The Mets went into the bottom of the seventh leading by a run thanks to Cespedes' go-ahead two-run home run. It was his 11th home run as a Met.

With four of the first five batters due up in the bottom of the seventh lefthanded, manager Terry Collins called on the southpaw Gilmartin. The Mets have repeatedly stated that Gilmartin is not a lefthanded specialist and he proved that by allowing back-to-back singles to Dee Gordon and Christian Yelich.

Reed came in and gave up a game-tying single to Prado. Justin Bour struck out, but Derek Dietrich singled to load the bases. Reed then walked Marcell Ozuna on a 3-and-2 pitch to force in the go-ahead run after missing on a close 2-and-2 pitch.

The Marlins scored three in the fourth against Jacob deGrom, who went six innings and allowed three runs on nine hits with four strikeouts.

Stony Brook graduate Tom Koehler shut out the Mets for the first five innings before Cespedes led off the sixth with a triple and scored on a groundout by Michael Conforto. Koehler then walked d'Arnaud, who scored on Johnson's two-out single to right to make it 3-2.

Curtis Granderson was double-switched out of the game after getting hit by a pitch on the right arm in the eighth. There was no immediate word as to his status.