MIAMI — The Mets’ tiring weekend here began Thursday with a 16-inning win that did not end until Friday morning. The hangover effect on the bullpen was evident in the next two games, both won by the Miami Marlins in their final at-bats.

It was only fitting that Sunday’s game, the Mets’ 12th in 12 days, would also come down to the very end.

“This was a strange series,” Mets second baseman Neil Walker said.

With four outs to go, the Mets put an end to a potential no-hitter. With one out to go, they mounted a spirited rally to tie the game, 2-2. So when they executed a perfect relay to home plate to prevent a Marlins run in the bottom of the ninth inning, Manager Terry Collins foresaw for his team a reversal of fortune.

“We’re going to win this game,” Collins said he remembered thinking to himself.

Instead, the next hitter, J. T. Riddle, hit a two-run home run off Addison Reed with two outs to hand the Mets a 4-2 defeat — the third straight game in which their bullpen stumbled in its final inning.