NEW YORK — Matt Holliday hit a three-run homer in the 10th inning and the New York Yankees completed a stunning rally from an eight-run deficit, outslugging the Baltimore Orioles 14-11 on Friday night.

In a game of home run derby, Starlin Castro tied it with a two-run drive that capped a three-run burst in the ninth off Brad Brach. In the 10th, Holliday hit the eighth home run of the evening – five by the Yankees – with one out off Jayson Aquino (1-1).

Down 9-1 in the sixth, the Yankees pulled off their biggest comeback since overcoming a 9-0 gap to beat Boston 15-9 in 2012.

RAYS 7, BLUE JAYS 4: Logan Morrison hit a two-run homer, Evan Longoria and Corey Dickerson added solo shots and Tampa Bay connected three times in the eighth inning at Toronto.

Derek Norris added a solo homer in the ninth. He had two hits and two RBI.

Kevin Pillar homered and reached base five times for the Blue Jays, who lost their third straight. Toronto’s 6-17 start is the worst in franchise history.

WHITE SOX 7, TIGERS 3: Geovany Soto broke open a tie game with a two-run single in the eighth inning, helping Chicago earn a win at Detroit.

Anthony Swarzak (2-0) pitched two scoreless innings for the White Sox, who won their fifth straight.

Tigers reliever Alex Wilson (0-1) allowed two hits and two unearned runs in the eighth. Detroit third baseman Nick Castellanos committed two errors in the inning, and three in the game, leading to Soto’s go-ahead hit.

MARINERS 3, INDIANS 1: Ariel Miranda allowed two hits and pitched into the sixth inning, Robinson Cano and Ben Gamel homered and Seattle won at Cleveland.

Miranda (2-2) didn’t give up a hit until Jose Ramirez’s one-out homer in the fourth. The left-hander struck out seven in 51/3 innings

Cano hit a two-run homer in the fourth. Gamel added a solo shot in the sixth, a towering drive to right.

Three Seattle pitchers combined to strike out 14 against the defending AL champions. Edwin Diaz recorded the final four outs, three on strikeouts, for his fourth save. He struck out Edwin Encarnacion with a runner on to end the eighth and pitched a perfect ninth.

NATIONAL LEAGUE

METS 7, NATIONALS 5: Josh Edgin relieved closer Jeurys Familia with the bases loaded in the ninth inning and got Bryce Harper to hit into a game-ending double play, and visiting New York stopped a six-game losing streak.

Travis d’Arnaud then homered twice and had five RBIs for the Mets. D’Arnaud hit a two-run homer in the second and a three-run drive in the fourth off Max Scherzer (3-2), who lasted six innings.

Jacob deGrom (1-1) struck out 12 in his third consecutive double-digit strikeout game and the 13th of his career.

Ryan Zimmerman homered twice for the Nationals, who had won 10 of 11. Zimmerman tied Andre Dawson for second on the franchise’s all-time list with 225 home runs.

PIRATES 12, MARLINS 2: Francisco Cervelli drove in three runs and Pittsburgh scored eight times in the second inning, at Miami

Jordy Mercer homered and had two RBI, Josh Harrison had three hits and knocked in two, and Andrew McCutchen also drove in a pair of runs for the Pirates, who snapped a six-game losing streak to the Marlins.