Aaron Judge hit a go-ahead, two-run homer in the eighth inning, and four batters later, Didi Gregorius hit a grand slam as the Yankees rallied to beat Tampa Bay, 8-3, on Tuesday night in a game that featured another surly clash between C. C. Sabathia and the Rays.

A pitch after slicing a would-be homer foul by about two feet, Judge smashed a 3-2 pitch from left-hander Colin Poche (2-3) into the right-center field seats for his 10th homer, which made it 4-3.

Later in the inning, Gregorius ended a 1-for-23 skid with a long grand slam. “Finally was able to come through,” he said. “Especially against a lefty, that makes it even better.”

The Yankees also got homers from Edwin Encarnación, his 28th and third in two games, and D. J. LeMahieu as they stretched their American League East lead to six games.