As they teetered on the .500 mark for a few hours, it was ultimately Michael Conforto’s 23rd homer of the season, which tied the game at four in the bottom of the seventh inning, that anchored the Mets’ 5-4 win over the Marlins to complete the sweep of Monday night’s doubleheader.

Conforto battled to a full count before blasting a two-out, 440-foot homer high into the second deck in right field.

“It felt great,” Conforto said. “That’s probably one of my best bullets right there. For it to tie the game is pretty cool.”

He went 2-for-3 with three RBIs, boosting his batting average to .258. Mets manager Mickey Callaway said Conforto has been one of the best bats on the team since the All-Star break.

J.D. Davis jump-started the inning with his 12th home run before Juan Lagares and Amed Rosario put two outs on the board after a popout and groundout, respectively.

After Conforto’s blast, Pete Alonso capped things off with another full-count blast for his 35th home run of the season to put the Mets in front. But although Alonso’s shot gave the Mets the lead, the rookie referred to Conforto’s solo homer as “majestic,” especially coming when it did.

“Mike is a hell of a ballplayer,” Alonso said. “I mean, it’s been awesome, I love watching guys hit and I love watching guys succeed. He’s been a huge part of this run that we’ve been on.”

The Mets will carry an 11-1 mark in their last 12 games when the series continues Tuesday night. And Conforto said he can feel the energy, not only in the stands at Citi Field, but in the dugout as well.

“We’ve battled back earlier in the year, we’ve battled back through some tough stretches. I don’t think that’s changed. I think really, now, we’re just playing complete baseball,” Conforto said. “We’re playing great defense, the bullpen is locked down, our starters are doing what they’re capable of and we’re just putting the whole thing together.

“When we do that, it’s a lot of fun. The true colors of this team are starting to come out.”