The forecasted rain never arrived at Citi Field on Wednesday, but there was plenty of thunder.

Boom, boom, boom, boom. That was the Mets pounding the Marlins’ pitching staff into submission with the long ball to finish a four-game sweep.

A team that began the day second among NL clubs in homers since the All-Star break added another four in rolling to a 7-2 victory. The win was the Mets’ sixth straight and 13th in 14 games, completing a soft stretch of schedule. They are now just a half-game behind the Phillies and Brewers for the second NL wild-card spot. Upcoming is three games against the Nationals, who are leading the wild-card race.

Michael Conforto blasted two homers, including No. 100 in his career, with Pete Alonso and Jeff McNeil also going deep to give Steven Matz and the bullpen plenty of support.

“One through nine we have guys who have power,” Conforto said. “But I think it’s just a product of our approaches are really there right now. Our plate discipline, we’re stacking good at-bats on top of each other, we are rallying around each other.”

The Mets (59-56) hit 10 homers in the four games against Miami, giving them 44 in the second half. Only the Dodgers (46) had more among NL clubs as Wednesday’s play began.

McNeil and Conforto iced this one with homers in the seventh inning that gave the Mets a five-run cushion. Alonso’s homer was his third in as many games.

“That’s a pretty potent offense right there, so it’s good to see those guys going,” manager Mickey Callaway said. “Pete is on a little bit of a home run streak and Conforto is swinging the bat well, and the rest of the guys are getting the job done when they might not be on any given evening and that’s what it takes to sustain a streak like this is somebody else stepping up every night and we have been getting that.”

Matz (7-7) rebounded from an ugly performance against the Pirates. Overall, the lefty allowed two earned runs on seven hits with seven strikeouts and two walks over 6 ²/₃ innings. Justin Wilson entered in the seventh with the tying run at the plate and escaped the jam before Jeurys Familia and Luis Avilan each pitched a scoreless inning.

Conforto’s two-run homer with two outs in the third extended the Mets’ lead to 4-1. Matz singled leading off the inning before Conforto jumped on a first-pitch curveball from Jordan Yamamoto and lofted it over the right-field fence for his 100th career homer.

As a joke, somebody in the Mets bullpen gave Conforto a tattered ball with stitches ripped and cover torn and told him it was the one from his 100th homer.

“It’s been a fun career up to this point,” Conforto said. “I have been really lucky to be around a lot of really great baseball players, good role models, and to be able to do it here at home was pretty awesome. Hopefully I hit a lot more, but today was special.”

The Marlins scored once against Matz in the second on Lewis Brinson’s RBI single, but poor base-running killed the rally. First, Brinson was caught between first and second on his single and tagged out. Starlin Castro added to the storm by getting thrown out at the plate attempting to advance from third on Harold Ramirez’s grounder to Todd Frazier.

Alonso hammered a changeup for a two-out, two-run homer in the first inning. Conforto walked before Alonso hit homer No. 37. Moving him into 10th place on the Mets’ single-season list. Todd Hundley and Carlos Beltran share the franchise record with 41 homers in a season.

“We have got a lot of dangerous hitters,” Alonso said. “Our lineup is unbelievable and we seem to be clicking real well right now and it’s awesome to see everybody contribute, no matter if you are getting a base knock or working counts.

“Everybody is having real quality at-bats, whether it be hitting homers or driving guys in or just simply getting on base. Even if somebody gets out you have got people working counts, making the guy work out there and I feel we’ve done a really good job of that.”