NEW YORK — This is a day when The Mets paid tribute to Keith Hernandezone of the greatest and self-confident first basemen of all time, shoddy play on the field in the 10th inning decided the game.

First, the Mets coughed up a 4-3 lead at the top of the frame via an error. Then the Marlins forced in the bottom half with two questionable defensive errors in a 5-4 Mets victory Saturday in Game 3 of a four-game series in front of a crowd of 43,336 at Citi Field.

What looked like an extra-inning implosion turned into a two-out dime when Tomas Nido doubled up Marlins third baseman Brian Anderson scoring Mark Canha to tie the game. Then the next hitter, Brandon Nimmo, sent a seemingly harmless grounder to pitcher Tanner Scott, who quickly threw it out and Nido rushed home with the winning run, sending the crowd sold out at Citi Field in the rapture.

“Everything happened quite quickly. I like to say that we never got out of it. We always like our chances, especially with the men on base. We took advantage of it. I saw he wasn’t playing on the line so when I saw the ball getting closer to the line I thought I had a chance,” Nido said. “He really, I guess, didn’t attack the ball. I thought I had a chance even though he had it. But when I saw the ball go away from him, I knew that something good was going to happen.

Pete Alonso and Francisco Lindor provided the power with home runs and it took five Mets pitchers to hold off the Marlins.

Pitcher Colin Holderman (4-0) was credited with the win after entering the game in the 10th for Edwin Diaz.

Carlos Carrasco (5 2/3, 7 hits, 1 run, 2 BBs, 5 strikeouts) got the start for the Mets and held Florida for five innings before giving up a run on a brace from Brian Anderson in sixth.

The Mets are now 7-0 in overtime this season as they maintained their 2.5-game lead over the Braves in the National League East. They have eight straight extra-inning streaks, tied for the second-longest streak in franchise history.

The Marlins suffered their seventh loss of the season, tied for the most with Boston.

The Mets (53-32) will go for the series win Sunday at 1:40 p.m.

“We were trying to find a way to win a game on Keith’s day. The baseball gods have shone on us,” Mets manager Buck Showalter said. “It was a great day and a proud moment for the organization to be able to embrace and show the respect everyone has for Keith and what he has done.”

Trailing by one run in the sixth, Lindor ((1 for 4, 1 RBI, 2 RBI) put the Mets ahead, 3-2 when he hit a two-run homer, his 15th of the season and second in the series scoring James McCann Lindor’s shot knocked out Marlins starting pitcher Braxton Garrett (5 2/3 IP, three hits, three runs, one walk, three strikeouts) and it was Game 2 row that Lindor hit deep from the right His 60 RBIs are three shy of his total for the 2021 season.

Alonso (1 for 4, one run, one RBI) broke a scoreless tie in the fourth inning and got the Mets’ first hit when he punched his 23rd homer of the season in the left field seats. It was Alonso’s first hit in the series after scoring 0 for his last 10 games. Last month, he had a pair of solo shots on June 25 in Miami, his third multi-home run game of the year.

Seth Lugo (1 IP, one hit, one strikeout) came in relief and threw a wild pitch scoring Avisail Garcia from third base for the 2-1 go-ahead.

Florida (40-43) took a 4-3 lead on a pitching error by Francisco Lindor in the 10th inning that allowed ghost runner Billy Hamilton to score from second base on a John Berti ground single.

E-mail: [email protected]

Twitter: @ngantaifis1