Sandy Alcantara extended his shutout streak to 19 innings and pinch-runner Billy Hamilton scored on a throwing error by catcher Tomás Nido in the 10th, sending the Miami Marlins past the New York Mets 2-0 on Sunday.

Luke Williams added an RBI single for the Marlins, who won for the eighth time in 11 games and earned a split of the four-game series. Tanner Scott struck out Francisco Lindor with runners at the corners for his 12th save.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Sandy Alcantara throws a pitch

Miami Marlins pitcher Sandy Alcantara delivers against the New York Mets during the first inning of a baseball game, Sunday, July 10, 2022, in New York.  (AP Photo/Mary Altaffer)

New York's lead in the NL East was trimmed to 1 1/2 games over the defending World Series champion Atlanta Braves — its smallest since April 16. The Mets, who had a 10 1/2-game cushion on June 1, begin a three-game series at Atlanta on Monday night.

Alcantara, selected to his second NL All-Star team Sunday, allowed six hits in seven innings and lowered his ERA to 1.73 — third-best in the majors. He struck out four and walked one.

"It was probably one of his best performances, from the standpoint that he wasn’t clicking with all his stuff," Marlins manager Don Mattingly said. "But I think him and (catcher Jacob Stallings) did a nice job of using his stuff and getting through it."

The right-hander has pitched at least seven innings in each of his last 12 starts, the longest stretch for a Marlins pitcher since 2004.

MLB ALL-STAR GAME: YANKEES LEAD WAY WITH 6 PLAYERS, SHOHEI OHTANI AGAIN PICKED FOR 2 POSITIONS

"When you believe in your stuff, you don’t have to worry," Alcantara said. "You just go and compete no matter what happens."

Jon Berti had three hits for the second straight game and got his major league-leading 27th stolen base for Miami.

Hamilton was inserted as the automatic runner at second base in the 10th, replacing Garrett Cooper. With a 1-2 count on Jesús Aguilar, the speedy Hamilton took off and easily stole third. He scored when Nido’s throw sailed well over Eduardo Escobar’s head into left field.

"The faster I get to third base, the easier it is for all those guys to hit," Hamilton said.

Nido scored the winning run Saturday in the 10th inning on a throwing error by Scott.

"It is always good to get a guy back out there and let him compete again the next night," Mattingly said of his closer.

METS' BUCK SHOWALTER TALKS WITH CHRIS BASSITT AFTER COVID-19 TESTING COMMENTS: ‘FREE TO EXPRESS HIMSELF’

Billy Hamilton celebrates after scoring a run

Miami Marlins' Billy Hamilton celebrates after scoring off a throwing error by New York Mets catcher Tomas Nido during the tenth inning of a baseball game, Sunday, July 10, 2022, in New York.  (AP Photo/Mary Altaffer)

Jesús Sánchez and Bryan De La Cruz singled off Tommy Hunter (0-1) before Williams' single made it 2-0.

Richard Bleier (1-1) worked a hitless ninth for the win.

Taijuan Walker turned in his sixth straight quality start for the Mets. The big right-hander scattered three hits over seven scoreless innings and struck out seven.

"I said before the game, in order to compete with a starter like that, you've got to get a good start out of your starter, and we certainly did. He matched him," Mets manager Buck Showalter said. "That was fun to watch. He knows what’s going on and what’s required to compete in a game like that."

Luis Guillorme had three of New York's seven hits.

METS' JACOB DEGROM THROWS THREE SCORELESS INNINGS IN SECOND REHAB START

Taijuan Walker throws a pitch

New York Mets pitcher Taijuan Walker delivers against the Miami Marlins during the first inning of a baseball game, Sunday, July 10, 2022, in New York.  (AP Photo/Mary Altaffer)

TRAINER’S ROOM

Marlins: SS Miguel Rojas collided with Berti in left field on Lindor’s fourth-inning popup. Rojas dropped to a knee after making the catch. He was checked by Mattingly and an athletic trainer but initially remained in the game before exiting in the sixth with neck stiffness.

Mets: C James McCann (left oblique) was placed on the 10-day injured list. He was injured Saturday making a sweep tag at the plate. ... RF Starling Marte (left groin tightness) sat out and is day-to-day. Showalter said he expects to get Marte back "in the near future."

KICKIN' IT

Mets infielders often like to play a little hot potato with the baseball as they come off the field and approach the dugout at the end of an inning. But on Sunday, it almost appeared they were on a soccer pitch or playing hacky sack in the schoolyard as a quick game broke out between second baseman Luis Guillorme, shortstop Francisco Lindor and third baseman Eduardo Escobar.

EXTRA! EXTRA!

The Mets fell to 7-1 in extra innings this season, snapping a streak of eight straight extra-inning wins that dated back to Sept. 14, 2021. That was the longest streak for the team since 1997.

CLICK HERE TO GET THE FOX NEWS APP

Jesus Sanchez celebrates in dugout after scoring run

Miami Marlins' Jesus Sanchez celebrates after scoring off an RBI-single by Luke Williams during the tenth inning of a baseball game against the New York Mets, Sunday, July 10, 2022, in New York.  (AP Photo/Mary Altaffer)

UP NEXT

Marlins: LHP Trevor Rogers (4-7, 5.57 ERA) pitches Monday night in the opener of a three-game home series against Pittsburgh. Rogers, who finished second in 2021 NL Rookie of the Year voting, has completed six innings only once in 16 starts this season.

Mets: RHP Max Scherzer (5-1, 2.26 ERA) makes his second start since returning from an oblique injury. He struck out a season-high 11 in six shutout innings of two-hit ball Tuesday at Cincinnati. Braves LHP Max Fried (9-2, 2.52) has allowed two earned runs or less in eight of his last nine starts.