BOSTON (AP) -- Greg Bird, John Ryan Murphy and Carlos Beltran homered during an eight-run second inning Wednesday and the New York Yankees beat the Boston Red Sox 13-8.

Didi Gregorius of the New York Yankees connects for a home run at Fenway Park in Boston. (Jim Rogash, Getty Images)

Stephen Drew doubled during New York's big inning and added a three-run homer in the third. Didi Gregorius later homered for the Yankees.

Masahiro Tanaka (11-6) pitched into the seventh inning as the Yankees won for the fifth time in six games. New York improved to 7-2 against the Red Sox at Fenway Park this season and 10-5 overall this season against their longtime rivals.

The Yankees entered the day 1 1/2 games behind the Toronto Blue Jays in the AL East.

The win was the 800th of Yankees manager Joe Girardi's career. He guided the Marlins for one year and is in eighth season with New York.

Red Sox rookie Henry Owens (2-2) retired the first four batters in order but the next eight Yankees reached base safely, with one out coming on the basepaths.

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