The New York Mets headed into Marlins Park in South Beach on Saturday night looking for their third win in a row. Corey Oswalt (1-2, 5.17 ERA) squared off against Miami Marlins right-hander, Dan Straily (4-5, 4.42 ERA).

Oswalt, 24, went six innings, allowing three earned runs on six hits with a walk and three strikeouts, lowering his earned-run average to 5.o3 on the season.

The Mets bullpen threw four scoreless innings in relief, but Jacob Rhame couldn’t work around a leadoff single in the bottom of the eleventh and Miami scratched out a 4-3 win.

Todd Frazier hit a three-run double in the fourth inning. Martin Prado had two RBI and J.T. Realmuto added his 54th RBI of the season for the Marlins.

Pitching

Oswalt sent the Fish down in order until Miami’s pitcher shot a groundball through the middle with two outs in the bottom of the third for the Marlins’ first hit of the game.

After being handed a three-run cushion in the top of the fourth, the 24-year-old righty gave up a single to Starlin Castro, a double to Derek Dietrich, and another base hit to Martin Prado, shortening the Mets’ lead to 3-2.

Oswalt allowed another run in the fifth, tying the game at three. Magneuris Sierra singled with one out to start things off. Rafael Ortega walked, then J.T. Realmuto singled to score Sierra.

Prado was hit by a pitch with two outs in the sixth, then after a mound visit, Miguel Rojas hit a quickly-dropping fly ball to right-center that Brandon Nimmo chased down and made a terrific diving catch on.

Bobby Wahl (6.75 ERA through four appearances for the Mets) replaced Oswalt to start the bottom of the seventh, ending the young righty’s night after six encouraging innings.

After retiring the first two Miami batters he faced, Wahl allowed a single to Ortega and walked Realmuto before striking out Castro on an 84 MPH slider to end the threat.

Paul Sewald (4.73 ERA in 45.2 innings pitched in 2018) came in to pitch the eighth. Brian Anderson singled to lead off the frame, Sewald got Dietrich to fly out then allowed another single to Prado, putting runners on first and second with one out.

After a wild pitch to Rojas moved the baserunners up, Sewald walked the Marlins’ shortstop, loading the bases and bringing pitching coach Dave Eiland out of the visitors’ dugout.

Sewald responded by striking out Sierra on a high four-seamer and then put away Issac Galloway on a line out to center field, leaving the bags packed with Fish and escaping a big jam.

Tyler Bashlor (4.91 ERA) entered the game to start the bottom of the ninth with the game tied at three. He got Ortega to fly out to left, Realmuto to pop out to center, and induced a groundball out from Castro to send the game into extra innings.

In the tenth, Bashlor got Anderson to line out, struck out Dietrich on an 85 MPH slider (preceded by a 97 MPH four-seamer), and Prado flew out for the rookie’s second perfect inning of work.

Jacob Rhame (7.65 ERA) came on to pitch the eleventh and allowed a leadoff single to Rojas. Sierra moved him along with a sacrifice bunt, and Bryan Holaday squeezed a double inside the third-base line for his first career walk-off RBI.

Offense

The Mets went down in order against Straily in the first and second innings with the 29-year-old racking up four strikeouts (Wilmer Flores, Michael Conforto, Brandon Nimmo, and Jose Bautista).

Amed Rosario notched the team’s first base hit of the night with two outs in the second, a double to left that was initially caught by Rafael Ortega but was dropped when the left-fielder hit the wall.

Flores added his 21st double of the season with one out in the top of the fourth. After Conforto and Nimmo both drew bases-on-balls, Todd Frazier broke his shneid with a bases-clearing double to left to put the Mets ahead 3-0.

The Mets left two men stranded (Flores, HBP; Conforto, single) in the fifth, and couldn’t capitalize on a one-out Bautista single in the sixth.

After going down in order in the seventh, Michael Conforto led off the top of the eighth with a walk but was erased on Brandon Nimmo’s 4-6-3 double play. Todd Frazier struck out to end the inning.

Miami’s Drew Steckenrider struck out Bautista, Devin Mesoraco, and Austin Jackson to retire the side in the top of the ninth.

Amed Rosario lined out to lead off the tenth against Marlins righty Drew Rucinski. Jeff McNeil flew out to left for the second out, then Flores blooped a double just inside the left-field line, his second of the game, bringing up Conforto with the go-ahead run on second and two out.

Miami intentionally walked him, bringing Brandon Nimmo to the plate. After falling behind 0-2, the Wyomingian worked the count back even. Nimmo fouled off three more pitches (his fifth and sixth of the at-bats) before hitting a soft comebacker to Rucinski to end the inning.

The Mets were set down in order in the eleventh and lost on a walk-0ff in the bottom half of the frame.

On Deck

The Mets will send Noah Syndergaard (7-2, 3.17 ERA) to the mound to take on Wei-Yin Chen (4-8, 5.48 ERA) and the Marlins at 1:10 PM in Miami for the final game of their three-game, weekend set.

The game will be televised on WPIX and broadcast on 710 WOR.