Robinson Cano's home run in the top of the eighth inning lifted the New York Yankees over the New York Mets, 6-5, in the rubber match of the Subway Series at Citi Field.
Nick Swisher added a three-run homer while Mark Teixeira brought home a pair of runs for the Yankees, who took the last two games of this series on the heels of a three-game losing streak.
"They have great power," Mets manager Terry Collins said about the Yankees. "They hit balls out of ballparks like there's nothing to it. That's their lineup. They go up there to hit a homer."
Boone Logan (2-0) earned the win with 1 1/3 perfect innings in relief of CC Sabathia, who allowed five runs -- one earned -- on nine hits and two walks over 5 2/3 innings.
Rafael Soriano worked around a two-out single in the ninth to secure his 15th save of the season.
Miguel Batista (1-2) gave up Cano's game-deciding home run to take the loss for the Mets.
Mets starter R.A. Dickey had won his last six starts and was coming off consecutive one-hitters, but was touched for five runs on five hits and three walks over a five-inning start.
"When you throw two straight one-hitters, you're doing everything right. He might have been off a little bit," Teixeira said about Dickey. "He threw a couple of pitches to me that there was no chance I was going to be able to hit them."
Andres Torres and Ruben Tejada had two RBI apiece in a losing effort.
Batista returned for his second inning of work in the eighth after the Mets rallied in the sixth to tie the game at 5-5, but Cano quickly put the Yankees back on top by hammering a changeup well over the wall in straightaway center field.
The Mets had a chance to answer in the bottom of the eighth when Torres singled off David Robertson with two outs, stole second and advanced to third on a balk, but Tejada's grounder to third ended the threat.
Soriano then entered for the ninth and opened the frame by winning a 10-pitch battle with David Wright, who swung through a low slider for the first out.
After pinch-hitter Daniel Murphy lined out to Cano, Lucas Duda pulled a base hit into right field. Soriano, though, induced a fly ball to right by Ike Davis to seal the victory for the Yankees.
The Mets stranded a pair of baserunners on third over the first two innings and the Yankees left the bases loaded in the second before the Yankees opened the scoring in the third.
After a pair of walks by Curtis Granderson and Cano around an Alex Rodriguez infield single filled the bags with one out, Teixeira lifted a sacrifice fly to right field to bring home Granderson.
The run snapped a string of 44 2/3 innings on the mound without allowing an earned run for Dickey, which is the second longest streak in Mets franchise history.
Swisher then made it a 4-0 game with a three-run home run over the right- center field wall.
The Mets answered with a run in the home third when Torres walked, advanced to third on Chris Stewart's throwing error on a steal attempt and came home on Tejada's sacrifice fly, but the Yankees got the run back in the fifth as Granderson was hit by a pitch to start the frame and later came home on a Teixeira fielder's choice to second.
Wright had an RBI single in the bottom of the fifth inning to make it a 5-2 game before the Mets fought back in the sixth to knot the game at five.
Justin Turner started the rally by reaching first with one out on a Cano fielding error. Ronny Cedeno followed with a base hit to center but was immediately erased on a fielder's choice off the bat of Josh Thole.
Pinch-hitter Vinny Rottino worked a walk to load the bases and Torres slapped a single just under the glove of Teixeira on the right side of the infield to plate Turner and Thole.
Cory Wade was the summoned out of the bullpen and Tejada greeted the reliever by lining Wade's third pitch to left, scoring Rottino.
Wright followed with a walk to load the bases again, but pinch-hitter Kirk Nieuwenhuis went down swinging to keep it a 5-5 game.
Dwight Gooden holds the Mets franchise record for scoreless innings with a stretch of 49 straight in 1985...Wright extended his hit streak to 14 games...The Yankees lead the all-time series between the teams, 119-82...The Yankees hit 3-for-8 with runners in scoring position and left five men on base...The Mets went 3-for-9 with runners in scoring position and stranded 10...Sabathia failed to pitch at least six innings for the first time this season.