MIAMI (AP) — Michael Conforto hit a tiebreaking two-run homer in the ninth inning Wednesday, and the New York Mets beat the Miami Marlins for the third night in a row, 5-3.

Jacob deGrom pitched six shutout innings and left with a lead, but Miami scored against the Mets’ bullpen on a wild pitch and two bases-loaded walks for a 3-all tie going into the ninth.

READ MORE: Record 90 New Vehicles Earn Top Safety Pick Or Top Safety Pick+ From IIHS

Brandon Nimmo walked with two outs against Brandon Kintzler (1-2), and Conforto hit his fourth homer to center field, a shot estimated at 425 feet.

“With how great Jake was,” Conforto said, “it feels good to get that win tonight.”

“It’s a big homer,” Mets manager Luis Rojas said, “and one of those wins we haven’t haven’t had this year — in the ninth to take a lead with two outs, especially after blowing a save.”

DeGrom struck out seven, walked none, allowed four hits and departed after throwing 91 pitches. Working for the first time in 10 days after skipping a turn because of neck stiffness, he touched 100 mph in the first inning and 98 in the sixth.

“Not pitching in 10 days, I was a little rusty, and I got tired quicker than I would have liked,” deGrom said. “I was fortunate the bad ones I threw weren’t close enough to swing at.”

The Mets’ bullpen struggled without right-hander Seth Lugo, who will move into the rotation and start Thursday.

“It’s really tough not to have a piece like Lugo in the ‘pen,” Rojas said. “But we trust our bullpen. They’re going to do a good job for us closing games.”

Edwin Diaz (1-0) walked in the tying run in the eighth but pitched a perfect ninth, getting all four of his outs via strikeout.

READ MORE: Naked Florida Man Shot At Miramar Apartment Complex, Alleged Gunman Surenders

“Diaz did a good job coming back and showing what he could do,” Rojas said.

Miami’s Pablo Lopez allowed two runs in 6 1/3 innings, raising his ERA to 2.42.

“Great starters’ battle,” Marlins closer Kintzler said. “It was fun to fun to watch. Great comeback by us. Terrible pitching by me.”

The Marlins have lost five games in a row to fall to 9-9. The Mets improved to 17-7 against Miami over the past two seasons and won at Marlins Park for the fifth time in a row.

New York has outscored Miami 24-10 in the series, with the finale Thursday.

The Marlins trailed 3-1 to start the eighth, but two singles and a walk by Dellin Betances loaded the bases, and he hit Eddy Alvarez to force in a run. Diaz came on and walked Logan Forsythe, batting .138, to tie the score.

Miami scratched out a run in the seventh on a walk, an infield hit, a groundout and a wild pitch.

Wilson Ramos’ sacrifice fly for the Mets in the second inning scored the game’s first run. They scored again in the seventh on a double by Dominic Smith and Luis Guillorme’s RBI single. Smith doubled home a run in the eighth.

MORE NEWS: Palm Beach County Defies Gov. DeSantis' Order, Refuses To Lower Flags For Rush Limbaugh

(© Copyright 2020 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)