Orioles 3, Rays 2: Manny Machado led off the ninth inning with a single and scored the winning run on a single by Nate McLouth as Baltimore won to remain tied for first in the AL East with the Yankees, who beat Boston.
Machado also made a key defensive play in the top of the ninth for the Orioles, who moved 18 games over .500 (80-62) for the first time since 1997.
Yankees 5, Red Sox 4: Curtis Granderson hit two home runs and Robinson Cano also homered.
The Yankees finished the game without shortstop Derek Jeter, who left in the eighth after pulling up lame running out a double-play grounder to end the inning.
Sign Up and Save
Get six months of free digital access to the Lexington Herald-Leader
David Phelps (4-4), gave up one run on five hits and a walk in 52⁄3 innings, striking out five. Rafael Soriano got four outs for his 37th save, but not before allowing a solo homer to Jarrod Saltalamacchia to lead off the ninth, followed by a fly ball that left fielder Chris Dickerson caught at the base of the Green Monster.
Mariners 3, Blue Jays 2: Miguel Olivo hit a solo home run and Kevin Millwood won consecutive starts for the first time since May.
Edwin Encarnacion hit his 39th homer, a two-run drive into the second deck, but it wasn't enough to keep Ricky Romero from losing his 13th straight decision.
Rangers 5, Indians 2: Josh Hamilton and Adrian Beltre homered before each left the game with injuries.
Hamilton didn't take the field in the top of the eighth inning, and the Rangers announced just before the game ended that Hamilton was forced out because of left knee soreness.
Beltre hit a two-run homer in the first, his 13th in his last 20 games, before exiting the game in the fifth with a strained left shoulder.
Ryan Dempster (11-6) won his fifth straight start and improved to 6-1 since he was acquired by the Rangers on July 31. He allowed two runs and struck out eight in seven innings.
Phillies 3, Marlins 1: Jimmy Rollins hit a two-run homer and Cliff Lee pitched seven strong innings to lead streaking Philadelphia to its seventh straight win.
The Phillies continued their late push for an NL wild-card spot with a three-game sweep of the Marlins.
Padres 3, Cardinals 2: Clayton Richard pitched seven strong innings and rookie Yasmani Grandal singled home the go-ahead run to lift San Diego past visiting St. Louis, handing the slumping Cards their 11th loss in 15 games.
St. Louis began the day with a one-game lead over Los Angeles for the second NL wild-card berth.
Nationals 2, Mets 0: John Lannan pitched 52⁄3 shutout innings and Washington lowered its magic number for clinching a playoff berth to six.
Ryan Zimmerman homered in the fourth off rookie Matt Harvey (3-5) and Ian Desmond connected off Jon Rauch in the eighth.