Boston extended its AL East lead to two games over the Orioles by rallying from a 5-2 deficit against New York closer Dellin Betances. The Yankees dropped to five games back and suffered a blow in their wild-card bid.

David Ortiz, who had homered earlier, brought the Red Sox within 5-3 with a two-out RBI single to center. Mookie Betts followed with an RBI single to left, cutting the deficit to 5-4.

Ramirez then launched a ball to dead center estimated at 426 feet for his second career walkoff homer.

Ortiz went 3-for-4 with three RBIs. The retiring DH hit his 537th home run during the eighth inning, pass Yankees legend Mickey Mantle for 17th on the career list.

TWINS 5, TIGERS 1: Brian Dozier's two-run single highlighted a four-run second inning for visiting Minnesota, which split the four-game series with Detroit to damage the Tigers' wild-card bid. Detroit went into the series 10-2 against the Twins.

WHITE SOX 2, INDIANS 1: Jose Abreu hit his sixth homer in his past 17 games and Carlos Sanchez singled in the winner in the ninth inning for host Chicago, which took three of four in the series.

A'S 14, ROYALS 5: Former Ray Stephen Vogt drove in five runs and Ryon Healy hit a mammoth three-run homer for Oakland, which swept a four-game road series at Kansas City for the first time.

PADRES GM SUSPENDED: Major League Baseball suspended Padres general manager A.J. Preller for 30 days without pay, hitting him with an unprecedented punishment for failing to disclose medical information when left-hander Drew Pomeranz was traded to the Red Sox in July.

The commissioner's office did not elaborate on what Preller did wrong. But in a statement issued by the Padres, Peller said he accepted full responsibility for "issues related to the oversight of our medical administration and record keeping."

"I want to emphasize that there was no malicious intent on the part of me, or anyone on my staff, to conceal information or disregard MLB's recommended guidelines," Preller's statement said. "This has been a learning process for me. I will serve my punishment and look forward to being back on the job in 30 days."

While baseball has suspended owners, including George Steinbrenner of the Yankees and Marge Schott of the Reds, for transgressions ranging from racism to gambling and other skullduggery deemed not in the best interest of baseball, it was believed to be the first time a general manager had been benched for hiding medical information from a trade partner.