Francisco Lindor hit a grand slam in the sixth inning, his latest clutch swing in an extraordinary season full of them, and the host New York Mets reached the National League Championship Series with a 4-1 victory over the Philadelphia Phillies on Wednesday.

Edwin Díaz struck out Kyle Schwarber with two runners aboard to end it as New York finished off the rival Phillies in Game 4 of their best-of-five Division Series, winning 3-1 to wrap up a postseason series at home for the first time in 24 years.

Immediately to follow in a raucous clubhouse, the Mets’ first champagne-soaked clinching celebration in Citi Field’s 16-season history.

After three days of rest, New York will open the best-of-seven NLCS on Sunday at the San Diego Padres or Los Angeles Dodgers. San Diego held a 2-1 lead in their NLDS heading into Game 4 on Wednesday night.

For the NL East champion Phillies, who won 95 games and finished six ahead of the wild-card Mets during the regular season, it was a bitter exit early in the playoffs and a disappointing step backward after they advanced to the 2022 World Series and then lost Games 6 and 7 of the 2023 NLCS at home to Arizona.

After falling short again in October, Bryce Harper and the Phillies are still looking for the franchise’s third championship.

Perhaps overanxious at the plate with so much on the table, the Mets left the bases loaded in the first and second and stranded eight runners overall through the first five innings.

They put three runners on again in the sixth, this time with nobody out, before No. 9 batter Francisco Alvarez grounded into a force at the plate against All-Star reliever Jeff Hoffman.

With the season on the line, Phillies manager Rob Thomson then summoned closer Carlos Estévez to face Lindor, who drove a 2-1 fastball clocked at 99 mph into Philadelphia’s bullpen in right-center, giving New York a 4-1 lead and sending the sold-out crowd of 44,103 into a delirious, bouncing, throbbing frenzy.

TIGERS 3, GUARDIANS 0 >> Riley Greene and Spencer Torkelson each drove in a run, and six pitchers combined to lift host Detroit to a win over Cleveland and a 2-1 lead in their AL Division Series.

The Tigers, baseball’s hottest team the past two months, will have their first chance to advance in the playoffs since 2013 tonight in Game 4 at Comerica Park.

The Guardians have gone 20 straight innings without scoring since opening the series with a five-run first and a two-run sixth in their 7-0 win.

After AL Cy Young Award favorite Tarik Skubal helped Detroit shut out Cleveland in Game 2, manager A.J. Hinch put a stream of pitchers on the mound and kept the Guardians quiet at the plate.

Detroit reliever Will Vest entered with two on and two outs in the seventh and got David Fry to line out to Matt Vierling at third.

Fans were fired up all day, chanting “Let’s go Tigers!” before the first playoff pitch in Detroit since 2014, and 44,885 were in the stands for the largest crowd in Comerica Park’s 25-year history.

YANKEES 3, ROYALS 2 >> Giancarlo Stanton hit a go-ahead homer in the eighth inning amid a battle of the bullpens, and visiting New York beat Kansas City in Game 3 of their AL Division Series.

The Yankees lead the series 2-1 with Game 4 coming tonight at Kansas City.

Stanton finished with three hits, drove in two runs and stole a base for the first time in four years for the Yankees, who will turn to six-time All-Star pitcher Gerrit Cole tonight with a chance to reach the American League Championship Series.

The Royals used four relievers before Kris Bubic took over for the eighth. The left-hander struck out Austin Wells before Stanton hit his 3-1 pitch nearly 420 feet to left to give New York the lead.