Considering who the Mets are and all the nuttiness they have seen, perhaps it was inevitable that on a day they fielded their first homegrown lineup in 41 years they would earn a three-game sweep of the Miami Marlins in a delightful, but entirely dumbfounding, way.

Two days after four Marlins pitchers walked four straight batters in the seventh inning to help the Mets rally for a victory, on Thursday afternoon Marlins closer Heath Bell seemed determined to prove he could do it by himself. He did, and in the end the Mets had a 3-2 victory that left them with an invigorating 11-8 record as they head west for a weekend series against the Colorado Rockies.

In the wild ninth inning, Bell walked four batters and then gave up a game-winning single to the rookie Kirk Nieuwenhuis with two out and the bases loaded. It was a single in name only, because Nieuwenhuis’s long drive carried over right fielder Giancarlo Stanton and bounced off the right-field wall.

As the jubilant Mets pounced on Nieuwenhuis, an exhausted Bell had nothing to show for throwing an implausible 46 pitches in the ninth — about three times the normal quota for a closer — except an L next to his name.