Baltimore hit five homers in all, four off rookie Jake Odorizzi (9-11). Nick Markakis and Steve Pearce delivered back-to-back shots in the third to spark the Orioles to their ninth win in 13 games against Tampa Bay this season.
After totalling four runs and 13 hits in three road losses to the Chicago Cubs, the Orioles got 14 hits against a Tampa Bay staff that had a major league-best 2.28 ERA since the All-Star break.
Baltimore's Chris Tillman (11-5) yielded an unearned run and three hits in seven innings.
YANKEES 6, ROYALS 1
KANSAS CITY, Mo. (AP) — Derek Jeter drove in two runs in his final scheduled trip to Kauffman Stadium, backing a sharp outing from Michael Pineda and helping the Yankees beat the Royals for their fifth straight win.
Jacoby Ellsbury drove in a run in the seventh inning with the 1,000th hit of his career, then added a two-run homer in the ninth. Stephen Drew and Martin Prado also homered for New York.
Pineda (3-2) gave up a solo shot to Mike Moustakas leading off the third inning, but that was about it in his third game back from the disabled list. Pineda struck out five without a walk in 6 1-3 innings to win for the first time since beating the Cubs on April 16.
James Shields (12-7) allowed six runs over 6 2-3 innings for Kansas City.
CARDINALS 3, PIRATES 2
PITTSBURGH (AP) — Matt Holliday's two-run single in the seventh inning off Jared Hughes capped a late rally, and the Cardinals beat the Pirates.
Jon Jay's pinch-hit single tied the game with two outs in the seventh and Holliday followed with a sharp single to left off Hughes (6-4) to score Jay and Matt Carpenter.
John Lackey (13-8) worked out of trouble early to work seven innings and pick up his second victory with the Cardinals after arriving in a trade from Boston on July 31. Trevor Rosenthal gave up a leadoff home run in the ninth to Andrew McCutchen but held on to earn his 39th save.
Pedro Alvarez hit his 18th homer in the second off Lackey, but the Pirates managed little after that to fall further behind St. Louis and first-place Milwaukee in the NL Central race.
MARLINS 7, ANGELS 1
ANAHEIM, Calif. (AP) — Giancarlo Stanton upstaged Mike Trout with a three-run homer in the first regular-season showdown between two of baseball's brightest young stars, leading Miami to a comfortable victory over Los Angeles.
Jarred Cosart (2-1) allowed a run and seven hits over 7 2-3 innings. He struck out four in his fourth outing since he was acquired from Houston at the July 31 trade deadline. The right-hander, who was 9-7 with the Astros, lost his shutout bid in the eighth on an RBI double by Kole Calhoun.
Wade LeBlanc (0-1) was charged with six runs and seven hits in 3 1-3 innings as a replacement for Garrett Richards, out for the season because of a knee injury that occurred last week in Boston. It was LeBlanc's first big league start since May 6, 2013, for the Marlins.
The Angels slipped back into a tie for the AL West lead with Oakland.
ATHLETICS 8, ASTROS 2
HOUSTON (AP) — Jeff Samardzija pitched eight solid innings and Josh Donaldson drove in three runs to lead Oakland over Houston.
Samardzija (4-3) allowed six hits, two runs and tied a season high with 10 strikeouts to bounce back from a two-game skid in which he yielded 11 runs combined. The right-hander was 2-7 with the Chicago Cubs before an early July trade.
Josh Reddick hit a two-run homer and Donaldson had three hits after sitting out Sunday with a knee injury. Donaldson doubled twice for his first extra-base hits and RBIs in his last nine games.
Chris Carter hit a two-run homer in the eighth to pull the Astros within one, but the A's added five runs in the ninth after reliever Tony Sipp walked all four batters he faced.
Scott Feldman (7-10) allowed seven hits and three runs in seven innings.
PHILLIES 3, NATIONALS 2
PHILADELPHIA (AP) — A.J. Burnett struck out 12 in seven innings and Cody Asche and Carlos Ruiz homered to lead the Phillies to a victory over the Nationals.
Domonic Brown had two hits and an RBI for Philadelphia, which won for the fourth time in five games.
Wilson Ramos and Anthony Rendon homered for NL East-leading Washington, which lost for just the second time in 14 games.
Burnett (7-14) won for the first time since the All-Star break, allowing one run on three hits with just one walk. The right-hander entered leading the majors in walks with 76.
Tanner Roark (12-8) gave up two runs on five hits in six innings and lost for just the second time in his last nine starts. Roark has a 2.25 ERA over that stretch.
RED SOX 4, BLUE JAYS 3, 10 innings
TORONTO (AP) — Yoenis Cespedes singled home the go-ahead run in the 10th inning and the Red Sox survived a ninth-inning collapse to beat the Blue Jays 4-3, snapping their losing streak at eight games.
Cespedes has 19 RBIs in 22 games since being traded to Boston on July 31. Seven of those 19 RBIs have given the Red Sox a lead.
Brock Holt hit a one-out single off Aaron Sanchez (2-1) in the 10th and stole second as Dustin Pedroia struck out, with the steal confirmed by video review. Holt stole third before Cespedes drove him in with a single up the middle.
Boston won for the first time since August 16 against Houston and snapped a six-game skid against the stumbling Blue Jays, who dropped to 6-15 in August.
Koji Uehara (6-4) got the win despite blowing his fourth save in 30 chances, and Craig Breslow finished for his first save in two chances.
ROCKIES 3, GIANTS 2
SAN FRANCISCO (AP) — Tyler Matzek struck out seven in seven innings to end a five-start losing streak, and Colorado capitalized on San Francisco's mistakes.
The Rockies have won four straight in San Francisco for the first time in club history.
In his 14th major league start and first against the Giants, Matzek (3-9) won for the first time since beating Pittsburgh on July 26. The rookie left-hander also won for the first time in eight road appearances and seven starts after beginning 0-5.
Matzek outdueled Jake Peavy (2-4), who won his previous two starts following three straight losses after he was acquired in a trade with Boston on July 26.
Justin Morneau and Corey Dickerson hit sacrifice flies for the Rockies, who earned their fourth road win in 27 games since sweeping a three-game series at AT&T Park from June 13-15.
San Francisco manager Bruce Bochy was ejected in the eighth by plate umpire Doug Eddings for arguing a called third strike on Buster Posey.
LaTroy Hawkins finished for his 21st save in 22 opportunities.
BREWERS 10, PADRES 1
SAN DIEGO (AP) — Ryan Braun and Aramis Ramirez homered to back Kyle Lohse's six effective innings as Milwaukee routed San Diego for its fifth straight road win.
Lohse (12-7) allowed a run and four hits in his first start since spraining his right ankle on Aug. 13. He beat the Padres for the fourth straight time.
Eric Stults (6-14) was charged with four runs and nine hits in five innings, snapping his three-game winning streak.
Ramirez and Gerardo Parra had three RBIs apiece. Braun, Ramirez and Carlos Gomez each had three hits to help the first-place Brewers remain 1 1/2 games ahead of St. Louis in the NL Central.
RANGERS 2, MARINERS 0
SEATTLE (AP) — Miles Mikolas allowed three hits in eight innings, J.P. Arencibia singled home the go-ahead run in the fourth and Texas blanked Seattle in the opener of a three-game set.
Mikolas (2-5) faced two batters more than the minimum, erasing two of the three hits he allowed with double plays. The right-hander struck out five and walked one. It was the first time Mikolas did not permit a run in 10 career starts.
Neftali Feliz worked a one-hit ninth for his seventh save.
Mariners starter Roenis Elias (9-11) walked four but limited the Rangers to one run in five innings.