Brandon Nimmo hit the walk-off RBI single to send the New York Mets over the Philadelphia Phillies by a score of 6-5 in a back-and-forth battle between the top two teams in the National League East on Tuesday night.

The Mets squandered a 5-2 lead before producing the winning rally without allowing Jhoan Duran (6-6) to record an out in the ninth. Starling Marte, Pete Alonso and Brett Baty all singled before Nimmo delivered his fifth career walk-off hit.

Mets closer Edwin Diaz (6-2) retired all five batters he faced, four by strikeout, after entering a 5-5 game.

The Mets, who entered the day with a 2 1/2-game lead over the Cincinnati Reds in the race for the final NL wild card berth, have won four of five after opening August 5-13. They are five games behind the NL East-leading Phillies,

See Full Page