Flushing, NY (SportsNetwork.com) - Christian Yelich hit a go-ahead, two-run single in the seventh inning and the Miami Marlins hit four home runs in beating the New York Mets 9-5 on Saturday.

Giancarlo Stanton belted a pair of solo homers, J.T. Realmuto smacked a two- run shot and Jeff Baker added a solo blast to power the victory.

Martin Prado accounted for three of Miami's 14 hits, and six relievers combined for 5 2/3 scoreless innings to close out the club's second straight win. Mike Dunn (1-3) stranded runners on the corners in the sixth and earned the win.

"To mix and match the way they did, scoreless, a tremendous, tremendous job," Marlins manager Dan Jennings said.

Both bullpens worked overtime thanks to Tom Koehler and Jon Niese being ineffective. Koehler was pulled in the fourth inning having allowed five runs on seven hits and four walks, and Niese's woes continued as he surrendered five runs -- four earned -- on seven hits over four frames.

Ruben Tejada went 2-for-4 with a three-run double for the Mets, who left 11 on base and dropped just their second home series of the season.

The Mets were primed for a big first inning when Lucas Duda doubled in a run, but Koehler worked out the bases-loaded, no-outs jam to keep it 1-0.

Donovan Solano doubled in a pair of Marlins in the second inning, Stanton sent a screamer over the wall in center in the fourth, and Realmuto went deep an inning later with a runner on.

Koehler gave up four runs in the home half of the fourth before being pulled. Curtis Granderson lofted a long single off the wall in left for an RBI single, and Tejada stepped in with the bases loaded and cleared the bags with a gapper to left-center to make it a 5-5 game.

Hansel Robles (0-1) gave up a single, a double and a walk to load the bases in the seventh. He retired the next two hitters without giving up the lead, but Yelich sent a sinking liner to right field that provided the difference.

Stanton and Baker provided some insurance with solo homers off Alex Torres in the ninth, with Stanton's mammoth blast landing halfway up the second deck in left-center.

"You have to make pitches on him," Mets manager Terry Collins said. "He's outstanding, he's a tremendous talent. There's nobody with any more power in all of baseball than he's got."

A.J. Ramos closed out his four-out save with a quiet ninth. Ramos has converted all four of his chances since inheriting the closer role.

Game Notes

Stanton recorded his 15th multi-home run game and took over the NL RBI lead with 44 ... The Mets fell to 6-2-1 in home series this season ... New York is 0-20 when trailing after seven innings ... Niese has pitched to a 9.00 ERA over his last four outings ... The Marlins have won the last four meetings after dropping the first five this season.