Vincent Carchietta-USA TODAY Sports

Pete Alonso ripped a three-run homer to left-center field to erase a one-run deficit and ignite a five-run sixth inning, and the host New York Mets defeated the San Diego Padres 8-5 on Sunday night.

Luis Guillorme and Tomas Nido contributed RBI hits in the inning and Alonso added an RBI double in the seventh as the Mets avoided getting swept in the three-game series. They also increased their lead in the NL East to 1 1/2 games over the Atlanta Braves.

Padres starter Joe Musgrove (8-3), who entered the night with two losses, two no-decisions and a 5.04 ERA in his previous four starts, pitched out of a major jam in the fifth inning but didn't survive the sixth.

Starling Marte singled and Francisco Lindor doubled, putting runners at second and third with no outs for the second straight inning. But while Musgrove got three groundouts to end the fifth unscathed, he surrendered the 425-foot no-doubter to Alonso one frame later.

Musgrove went 5 1/3 innings, allowing four runs on five hits, two walks and a hit batter. He struck out four.

The four RBIs gave Alonso the major league lead with 82, one better than the Yankees' Aaron Judge.

The Mets' burst came after the Padres took a 1-0 lead in the top of the sixth against reliever Drew Smith. Nomar Mazara singled and raced home on Eric Hosmer's double to left. San Diego's bid for more ended with Brandon Nimmo's leaping catch as he banged into the fence in left-center on Austin Nola's fly ball.

The win went to Smith (2-3), who gave up two hits and the run in his one inning after relieving starter Carlos Carrasco. The Padres peppered Carrasco with baserunners in the early innings but couldn't score.

Edwin Diaz notched his 21st save in 24 opportunities after the Padres scored two runs in the top of the ninth and had runners on the corners. He allowed a run to score on a groundout.

In five innings, Carrasco allowed six hits and two walks with one strikeout.

After Alonso drove in a run in the seventh, the Mets added two more in the inning on Mark Canha's infield single and the subsequent throwing error by third baseman Manny Machado.

Nola singled home a run in the eighth, and Machado, Jorge Alfaro and Hosmer had RBIs in the ninth. Machado finished with three of the Padres' 13 hits.

In his debut with the Mets, designated hitter Daniel Vogelbach went 1-for-3 with a walk and a run scored. The Mets finished with 12 hits.

More must-reads:

TODAY'S BEST
Knicks star offers passionate defense of HC Tom Thibodeau after Game 7 loss
Xander Schauffele proves doubters wrong with historic win at 2024 PGA Championship
Canucks won't have linchpin forward for Game 7 vs. Oilers
Pacers ride historic shooting performance to Game 7 blowout of Knicks
Watch: Aaron Judge blasts 13th home run in Yankees' seventh straight win
Knicks' Jalen Brunson suffers serious injury in Game 7 vs. Pacers
Phil Foden lifts Manchester City to fourth consecutive English Premier League title
Dodgers add recently acquired left-hander to active roster
Report: 2023 No. 7 pick expected to terminate KHL contract, join Flyers
Mavericks advance to Western Conference Finals aided by controversial call late
Connor McDavid, Oilers hammer Canucks to force Game 7
Tyson Fury-Oleksandr Usyk epic increases excitement for potential rematch
Seize the Grey wins in muddy Preakness
Even Mike Budenholzer admits the Suns need a point guard
Watch: Juan Soto's first multi-homer game as a Yankee
Xander Schauffele, Collin Morikawa lead at PGA Championship
Knicks could get major boost for Game 7 showdown with Pacers
Giants All-Star pitcher suffers setback in recovery from injury
Panthers star named winner of 2024 Selke Trophy
WNBA to investigate $100,000 sponsorship deals for Aces players