Nick Markakis added a solo home run for the Orioles, who took two of three from New York to pull within three games of the first-place Yankees in the AL East.

Curtis Granderson homered, doubled and singled for New York. Needing a triple to reach the cycle, he drew a walk in the seventh inning.

David Adams hit a ninth-inning homer for the Yankees, his second in three games. The teams combined for 13 home runs in the series, including five in the finale.

Yankees starter Hiroki Kuroda left in the third with a bruised right calf, one inning after he was struck in the leg by a line drive off the bat of Manny Machado. Kuroda (6-3) allowed five runs and eight hits in two-plus innings.