Now that was ugly.

But memorable and ugly sure beats just another night at the ballpark when baseball is set back a century or so. Nick Green’s towering fly to left was deep enough in the 15th inning at Marlins Park, and Lucas Duda’s throw home had no chance.

Green’s sacrifice fly scored the winning run off Shaun Marcum, sending the Mets to their fifth straight loss, 4-3 to the Marlins.

“It’s pretty draining and none of us [is] happy right now,” Matt Harvey said, roughly four hours after his sixth-inning departure from the game.

Ruben Tejada had put the Mets ahead with an RBI single in the top of the 15th before Marcum, in his second inning of work after every reliever in manager Terry Collins’ bullpen had been used, allowed two runs to end it.

If the game went another inning, Collins said he planned to use backup catcher Anthony Recker on the mound.

Rob Brantly’s RBI single tied the game in the 15th before Green won it with a fly to left. Greg Dobbs started the rally with a one-out single before Justin Ruggiano walked. The fact none of the balls was hit particularly hard irked Marcum, who volunteered for duty when it became evident the Mets would run out of pitchers.

“I’d rather make mistakes and get hit all over the place,” Marcum said. “It’s frustrating when you make good pitches and they find holes and get base hits.”

The Mets finished a putrid 1-for-18 with runners in scoring position on a night David Wright didn’t start because of a stiff neck. Wright made a pinch-hitting appearance in the 13th inning and struck out.

“I played through it [Sunday], so pinch-hitting is not going to kill me,” Wright said. “All of us know how important wins are. It’s only April, but we need to get this thing going in the right direction.”