Center fielder Jacoby Ellsbury #22 of the New York Yankees makes a sliding catch ( Rich Schultz/Getty Images)

NEW YORK — Starlin Castro hit a sacrifice fly in the 10th inning and the New York Yankees hardly resembled a team resigned to fading away after selling off their stars at the trade deadline, rallying past the Mets 6-5 on Monday night in their Subway Series opener.

Didi Gregorius hit a tying single with two outs in the eighth and new closer Dellin Betances worked out of a major jam for his first save this season. Hours after trading slugger Carlos Beltran and pitcher Ivan Nova before the non-waiver deadline, the Yankees snapped a four-game slide and won for the seventh time in the past nine meetings with their crosstown rivals.

Wilmer Flores and rookie Matt Reynolds homered for the skidding Mets, who lost their fifth in six games as fans in the sellout crowd of 42,125 traded chants throughout the night following a hectic afternoon at Citi Field.

Earlier in the day, the defending NL champions completed deals to land All-Star outfielder Jay Bruce and reacquire lefty Jon Niese.

Sign up for the NJ1015.com Newsletter

Get the best of NJ1015.com delivered to your inbox every day.

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)