NEW YORK -- After squandering a two-run lead on one sudden swing, it took the Florida Marlins just a few minutes to bounce right back.
"It is deflating a little bit, but you've got to give our guys credit the way they rebounded and came up with four straight hits," Florida manager Jack McKeon said. "They didn't give up and say, 'Oh, tough luck.' We went right after them."
Mets nemesis Gaby Sanchez drove in two runs and singled to start the decisive rally. Stanton threw out Jose Reyes at the plate in the fifth, and Florida got seven strong innings from starter Javier Vazquez.
In the 10th, the Marlins took advantage of a mistake by first baseman Daniel Murphy.
Sanchez and Hanley Ramirez singled with one out off Jason Isringhausen (2-1). Dewayne Wise followed with a single and went tearing toward second base, not realizing the runners had held up in front of him.
Murphy cut off the throw from right field and had Wise hung up between first and second. But the first baseman got preoccupied with the runner at third and flipped too late to second baseman Justin Turner covering first as Wise scrambled safely back to the bag.
"I was trying to make sure the run didn't score and I got caught in no man's land," Murphy said. "It changed the whole inning. It was a bad play on my part. I've got to get it in somebody else's hands."
The 21-year-old Stanton worked a full count against Isringhausen and hit a screaming shot to left for his second career slam and first this season. It was his 25th home run of the year.
"The guy's a good hitter," Mets starter Mike Pelfrey said. "I think Major League Baseball might want to find a way to get him out of the game, because he's going to hurt somebody."
Duda hit a two-run homer off closer Leo Nunez in the bottom of the ninth, snapping an 0-for-14 skid.
It was the second day in a row that the Mets tied the game on a home run with two outs in the ninth. Scott Hairston came through Sunday in Washington, but the Nationals pushed across a run in the bottom half to win 3-2.
"You'd like to at least win one of them, hopefully two, when you get that type of comeback and that momentum," said Jason Bay, who homered for New York in the fourth. "Unfortunately, it didn't happen."
Nunez (1-2) got out of the inning and Burke Badenhop pitched a perfect 10th, handing the Mets their third straight loss following a five-game winning streak.
New York played its first home game since trading All-Star outfielder Carlos Beltran last week. Third baseman David Wright, who came off the disabled list July 22, was playing at Citi Field for the first time since May 8.
Vazquez pitched seven sharp innings for the second consecutive outing, continuing his run of solid starts. He was in line for the win until New York fought back in the ninth against Nunez.
Angel Pagan got away with some foolish baserunning when he slid headfirst into second with a one-out double, barely beating the throw. Stanton was slow to field the ball on what appeared to be a routine single, but with the Mets down by two, the wise choice for Pagan would have been to hold at first.
"I was pretty upset over that," Stanton said. "I just told myself, I'm going to have a chance to redeem it, and this next inning just make the best of it."
Bay grounded out before Duda drove a 1-1 pitch to center for his third home run, sending the crowd of 28,862 into a boisterous frenzy. Fans chanted Duda's name and he peeked out of the dugout for a quick curtain call.
"Pretty cool," Duda said.
It was Nunez's fourth blown save in 34 chances.
"All the action happened in the last couple of innings," McKeon said.
Sanchez went 2 for 3 with a walk, giving him a .390 career average against the Mets, the highest of any opposing player with at least 100 at-bats, according to STATS LLC.
Pelfrey, coming off a complete game at Cincinnati, threw 119 pitches over six innings and is 0-7 in 15 starts against the Marlins since beating them in his major league debut.
Omar Infante got two of his three hits off Pelfrey, making him 15 for 26 (.577) against the right-hander. ... Marlins CF Mike Cameron was rested. ... Mets manager Terry Collins said before the game that Murphy will get a day off Tuesday against rookie LHP Brad Hand. Hairston is likely to start in the outfield. Hairston came off the bench Sunday in Washington and homered twice. ... New York began a stretch with 20 of 29 games at home. ... Wright went hitless for the first time in 11 games since coming off the DL. ... The Mets opened a 10-game homestand, their longest of the season, after a 6-4 road trip. New York is 0-9 in the first game of a homestand. ... Reyes made a sensational play at shortstop to rob Emilio Bonifacio of a hit. ... In honor of Wright's return, the Mets are offering $5 seats in left field for this series.
Death of Tampa Bay Rays bullpen catcher Jean Ramirez ruled a suicide
The death of Tampa Bay Rays bullpen catcher Jean Ramirez near his home in Fort Worth, Texas, has been ruled a suicide.
Brad Ausmus joins Oakland A's as bench coach for first-time manager Mark Kotsay
The A's have hired Brad Ausmus as the team's bench coach under first-time manager Mark Kotsay. Ausmus previously was the manager for the Tigers and Angels.
Buster Olney's Top 10s for 2022: Ranking MLB's best teams
With moves left to be made once the lockout ends, Buster Olney rates baseball's best teams as 2022 begins.
MLB lockout: Are the owners and players talking? Should baseball fans be worried? Here's the latest
Nearly a month and a half since the lockout began, it's time for another update on where baseball's immediate and long-term future stands.
Atlantic League ends trials with 61-foot mounds, robo-umps for balls and strikes
The Atlantic League is restoring its pitching mound to 60 feet, 6 inches from home plate and returning strike zone judgment to umpires after experimenting with the rules since 2019.
Travis Snider retires after 8 big league seasons
Travis Snider says he has retired after eight major league seasons.