TORONTO -- Ryan Goins hit a grand slam and Russell Martin had a two-run homer as the Toronto Blue Jays dumped the New York Yankees 8-1 on Friday night.

Goins ended Masahiro Tanaka's night in the sixth inning when he turned on an 0-2 pitch for his eighth homer of the season. Teoscar Hernandez chipped in with a solo shot as Toronto ended New York's three-game win streak.

Starter Marco Estrada (10-8) worked seven strong innings to help the last-place Blue Jays (72-82) take the opener of the three-game series, which will close out Toronto's home schedule.

It was the Yankees' second loss in their last nine games. New York (85-68) entered play three games behind first-place Boston in the American League East division standings.

The only hiccup on Estrada's line was a solo shot by rookie sensation Aaron Judge in the first inning. His 46th homer of the season landed in the second level of seats after travelling a projected 469 feet.

The Blue Jays pulled even in the bottom half with an unearned run.

Hernandez singled and moved to third when second baseman Starlin Castro missed Todd Frazier's throw on a potential double-play ball. Jose Bautista hit a slow chopper that brought home the speedy leadoff man.

Bautista delivered some stellar defence in the third inning. With Frazier on second, Jacoby Ellsbury hit a drive to right field that Bautista chased down near the warning track.

Frazier had to scamper back to the base to avoid being doubled off. Goins then burned Frazier with the old hidden ball trick as he faked a throw to the pitcher and applied the tag when Frazier lifted his foot off the base.

Hernandez did his best Judge impression in the bottom half of the frame to put the Blue Jays ahead. The 24-year-old hit a no-doubt moonshot that bounced off the windows in the 300 level at Rogers Centre.

His third homer of the season was followed an inning later by Martin's 13th blast of the campaign.

In the sixth, Tanaka walked Bautista, gave up a single to Kevin Pillar and issued a two-out walk to Kendrys Morales to load the bases. Goins followed with his second career grand slam.

Tanaka (12-12) allowed six hits, seven earned runs, three walks and had six strikeouts. Estrada allowed three hits, one earned run and three walks while striking out four.

Toronto outhit New York 7-3. Announced attendance was 42,153 and the game took two hours 32 minutes to play.

Notes: Joe Biagini (3-11, 5.33 earned-run average) is scheduled to start for Toronto on Saturday against fellow right-hander Sonny Gray (9-11, 3.38 ERA). ... The game will start at 4:07 p.m. Eastern Time instead of the usual 1:07 p.m. ... Goins' other grand slam came May 24 at Milwaukee. ... The Blue Jays will finish their season next week with a road trip that will includes stops in Boston and New York.