NEW YORK (AP) — Brandon Nimmo hit a tiebreaking, sixth-inning home run off Zack Wheeler that sailed just over the glove of leaping right fielder Nick Castellanos, and the New York Mets beat Philadelphia 2-1 on Sunday night to prevent the Phillies from clinching the NL East at Citi Field.

New York (87-69) took three of four from the Phillies and has won 18 of its last 23 games to move a season-high 18 games over .500. The Mets passed Arizona into the second of three NL wild card slots, ahead of the Diamondbacks because they won the season series 4-3, and stayed two games ahead of the Braves (85-71). New York finishes the regular season with three games each at Atlanta and Milwaukee.

Philadelphia (92-64) needs one win in its last six games to clinch its first NL East title since 2011. The Phillies host the Chicago Cubs in a three-game series starting Monday night, then close with three games at Washington next weekend.

Nimmo led off the sixth with his 22nd homer, pulling a first-pitch fastball over the 8-foot fence.

Before a boisterous crowd of 43,139, the second straight Citi Field sellout but just the fifth this season, Tylor Megill allowed four hits over four innings, and Phil Maton (3-3), Joey Butto, Edwin Díaz finished with one-hit relief.

Díaz got his 20th save in 26 chances this season and his second career six-out save, his first since since Aug. 4, 2022. He stranded Trea Turner at third when Alec Bohm grounded out in the eighth and Bryson Stott at third in the ninth with Johan Rojas struck out.

Francisco Alvarez’s throw on Stott’s steal hit third base put popped up to third baseman Mark Vientos, forcing Stott to hold.

Mets star Pete Alonso, eligible for free agency after the World Series, was given a standing ovation when he walked to the plate in the first inning. Alonso tipped his helmet and tapped it to his heart. He went 0 for 4 with three strikeouts and was given another standing ovation in the eighth.

Wheeler (16-7), who had won his prior four starts, allowed two runs and seven hits in seven-plus innings.

Turner singled in the first, advanced on a wild pitch and scored on Bohm’s two-out single.

Vientos doubled in the second, hustling into the base ahead of Rojas’ throw from center, and came home when Tyrone Taylor singled past a diving Bohm at third.

J.D. Martinez was benched by the Mets for the second straight day and struck out as a pinch hitter in the eighth, extending his career-worst slide to 0 for 32.

New York drew 2,285,147 for 78 dates, down from 2,573,555 last year.

TRAINER’S ROOM

Phillies: OF Austin Hayes (kidney infection), out since Sept. 1, was 0 for 4 with a walk and two strikeouts, playing left field for Triple-A Lehigh Valley. He could be activated Tuesday. … RHP Spencer Turnbull, sidelined since June 26 by a right lat strain, pitched two innings for the IronPigs and allowed Tyler McDonough’s two-run homer. He likely will throw batting practice on Thursday at the Phillies’ complex in Clearwater, Florida.

Mets: RHP Kodai Senga won’t pitch again during the regular season after feeling felt tightness in his right triceps during a minor league rehab outing Saturday. … SS Francisco Lindor (back) missed his seventh straight game but participated in more intense pregame workouts. The Mets hope he can return Tuesday.

UP NEXT

Phillies: RHP Aaron Nola (12-8, 3.54 ERA) starts Monday’s homestand opener against the Chicago Cubs.

Mets: RHP Luis Severino (11-6, 3.79) opens a three-game series at Atlanta on Tuesday. The Braves start RHP Spencer Schwellenbach.

___

AP MLB: https://apnews.com/hub/mlb