Gary Sanchez, Didi Gregorius and Tyler Austin homered off David Price, and the Yankees beat the Red Sox 6-4 Tuesday night to end Boston's 11-game winning streak and delay its AL East title celebration.
David Ortiz, starting his final series in the Bronx, went 0 for 5 with two strikeouts and stranded seven runners. He ended the game by fanning with two on against Tyler Clippard.
Having clinched at least a wild-card berth last weekend, Boston is five games ahead of second-place Toronto with five games left, needing just one victory or a Blue Jays loss to ensure the division championship.
Toronto also prevented the Red Sox from wrapping it up Tuesday night by beating Baltimore 5-1.
Price (17-9) again struggled against the Yankees, who have only a remote chance of reaching the postseason. They closed within four games of Baltimore for the second AL wild card with five remaining.
Sanchez hit a two-run homer in the first inning, his 20th since the Yankees brought him up from the minors on Aug. 3. Playing in his 51st big league game, Sanchez matched Wally Berger in 1930 as the fastest to 20 homers.
Gregorius hit a solo drive in the sixth, also his 20th. After the Red Sox rallied, Austin broke a 4-all tie with a drive to right - all four of the rookie's homers have gone to the opposite field.
Blake Parker (1-0) got two outs for his first big league win in two years, retiring Ortiz on a groundout with two on to end the seventh. Clippard got the save, and the Yankees (81-76) ensured they will not finish with their first losing season since 1992.
Price gave up six runs and 12 hits - matching his season high - in 6 1/3 innings. He is 1-3 with a 7.89 ERA against the Yankees this year, allowing 26 runs in 29 2/3 innings.
The left-hander had won eight straight decisions overall.
Yankees rookie Luis Cessa allowed two runs and five hits in six innings.
After Sanchez's homer and Jacoby Ellsbury's fifth-inning RBI single built a 3-0 lead, Boston closed in the sixth on Dustin Pedroia's run-scoring single and Mookie Betts' RBI groundout. Aaron Hill led off the seventh with his first career pinch-hit homer, and Pedroia tied the score with a single against Tommy Layne.
Betts slid and while on his back, caught Chase Headley's fly ball to short right in the sixth, then got up and doubled up Starlin Castro off first.
Yankees manager Joe Girardi expects pitcher Luis Severino will be disciplined after hitting Toronto's Justin Smoak with a pitch, sparking the second bench-clearing scuffle of Monday's game. Toronto's J.A. Happ had thrown consecutive inside pitches to Headley, hitting him with the second and prompting a warning from plate umpire Todd Tichenor.
"The situation I think was handled very poorly," Girardi said. "If he's suspended, there's no doubt in my mind that J.A. Happ should be suspended."
Red Sox: LHP Drew Pomeranz (sore left forearm) was scratched from Thursday's start and will be replaced by LHP Henry Owens. The Red Sox hope Pomeranz can throw off a mound this week and assume a bullpen role. ... Knuckeballer Steven Wright (right shoulder) threw a bullpen and is to throw another one Friday, probably in Boston.
Yankees: RHP Masahiro Tanaka (forearm) was cleared to play catch by team physician Dr. Christopher Ahmad and made 25 throws from 60 feet. Tanaka hopes to start this weekend against Baltimore.
RHP Bryan Mitchell (1-2) is scheduled to start Wednesday night for New York against Boston RHP Clay Buchholz (8-10).