NEW YORK - The talk pregame was that the Red Sox and Yankee rivalry had lost its steam, but you wouldn't know it by their first meeting of the season Friday night.
In a classic marathon that saw two lead changes from the 16th inning on, Mookie Betts lofted a sacrifice fly to center in the top of the 19th inning that scored Xander Bogaerts and gave the Sox a 6-5 win in a game that they had appeared to win on three occasions.
At 6:49, it was longest game (by time) in Red Sox history.
Steven Wright, who pitched the final five innings and twice coughed up the lead, got the win.
Pablo Sandoval's single to center - his fourth hit of the night - scored Dustin Pedroia from third in the 16th. Pedroia had been hit by a pitch leading off the inning and took third on a single by Hanley Ramirez.
But for the second time in three innings, the Yankees answered with doubles from Brian McCann and Carlos Beltran off Wright, producing the tying run in the bottom of the 18th.
Earlier, David Ortiz had put the Red Sox ahead in the top of the 16th with a solo homer to right on an 0 and 2 pitch off Esmil Rogers and the Sox seemed headed for victory.
But in the bottom of the 16th, Mark Teixeira homered off Wright to match Ortiz and send the game further into morning. Wright, however, hung in and picked up the victory.
The Sox had every reason to believe they had won the game more than four hours earlier, but down to their last out, the Yankees got a game-tying homer from Chase Headley in the ninth off Edward Mujica, filling the closer's spot for the injured Koji Uehara.
The Red Sox had raced out to a 3-0 lead, but saw the Yankees chip away with two runs in the sixth and another in the ninth.
Daniel Nava delivered a two-run single in the sixth. Nava reached base three times (two hits, hit batsman).
Wade Miley, making his first start for the Red Sox, retired the 10 batters he faced, but suddenly ran out of gas in the sixth when the Yankees scored twice. He left after 5 1/3 innings, charged with two runs on four hits with two walks and six strikeouts.
The Sox had taken a 1-0 lead in the first on a run-scoring single to center from Sandoval.
Alex Rodriguez singled home the first New York run off Miley in the sixth. Brian McCann added a bases-loaded sacrifice fly to produce the second.