Chavez drove in two runs for the Orioles, who have won four of six in snapping a three-game road losing streak. J.J. Hardy, Mark Reynolds, Manny Machado, Chris Davis and Robert Andino also drove in runs.
Josh Reddick, who drove in three runs, and Stephen Drew hit two-run home runs for the Athletics, who are two games ahead of the Orioles for the first wild-card spot. Adam Rosales had two hits.
Brian Matusz (6-10) retired all six batters he faced, two on strikeouts, to earn the victory. Jim Johnson got the last out for his 43rd save.
A's starter Dan Straily (2-1) lasted 4 2-3 innings, giving up four runs and five hits. He walked five and struck out one.
INDIANS 7, TIGERS 6
CLEVELAND (AP) — Lonnie Chisenhall singled in the winning run with one out in the ninth inning to help Cleveland deal the Tigers a crucial loss Sunday.
The Tigers had manager Jim Leyland ejected and catcher Alex Avila hurt in a collision with Prince Fielder as they dropped two games behind in the AL Central. They go to Chicago to face the first-place White Sox on Monday.
Jason Kipnis doubled off Jose Valverde (3-3) and scored the tying run on a one-out triple by Carlos Santana.
Valverde then intentionally walked both Michael Brantley and Ezequiel Carrera to face Chisenhall, who lined the first pitch to right-centre.
Esmil Rogers (2-1) pitched one inning for the win.
Miguel Cabrera, with visiting Detroit fans chanting "MVP! MVP!" hit a three-run homer in the seventh to put the Tigers ahead 6-5. Cabrera connected off Joe Smith (7-5) for a 402-foot drive.
RANGERS 2, MARINERS 1
ARLINGTON, Texas (AP) — Matt Harrison pitched into the ninth inning for his 17th victory and Texas added to its AL West lead for the first time in 10 days.
Adrian Beltre hit his 33rd homer for the Rangers, and Michael Young had his second three-hit game in four days.
Harrison (17-9) got within one out of his fourth complete game of the season, but came out after Jesus Montero's two-out single put runners at first and third. Koji Uehara struck out Michael Saunders for his first save for the Rangers.
Pitching on his 27th birthday, Harrison allowed a single to start the game. But he didn't allow a runner past first base until Justin Smoak led off the eighth with his 16th homer. The All-Star left-hander, the fourth AL pitcher to reach 17 wins, benefited from three double plays — two that he started.
The Rangers (87-59) have the best record in the American League, and now have a three-game division lead over Oakland. The Athletics lost for only the second time in 10 games Sunday, 9-5 at home against Baltimore.
YANKEES 6, RAYS 4
NEW YORK (AP) — Russell Martin's three-run homer highlighted an eventful early burst and the Yankees kept their AL East lead.
The Yankees won the last two in the three-game series. They began the day with a one-game division lead over Baltimore, which later played at Oakland.
Minus ejected manager Joe Maddon, the Rays fell five games behind the Yankees and trail the Orioles and Los Angeles Angels in the wild-card scramble. Cleanup man Matt Joyce also was tossed as Tampa Bay finished 1-5 on its visit to Yankee Stadium and Camden Yards.
Ben Zobrist homered and doubled for Tampa Bay.
Hiroki Kuroda (14-10) struck out 10 in six innings and beat Tampa Bay for the second time this month. Rafael Soriano, the Yankees' fifth pitcher, earned his 40th save in 43 chances.
Matt Moore (10-11) lost his fourth straight start. The rookie and Kuroda started out well in the last scheduled game between the teams, with the first nine outs overall on strikeouts. Each team finished with only five hits.
WHITE SOX 9, TWINS 2
MINNEAPOLIS (AP) — Jake Peavy baffled Minnesota again, Dayan Viciedo and Adam Dunn homered, and the Chicago White Sox beat the Twins 9-2 on Sunday.
The White Sox scored six runs in the sixth inning to support Peavy (11-11) and stay ahead of Detroit in the AL Central.
The Tigers were playing Cleveland on Sunday and travel to Chicago for a makeup game on Monday. It will be the final time the two teams meet this season.
Joe Mauer homered in his return after missing five games with back spasms, but the Twins weren't able to avoid the sweep and lost to Chicago for the 13th time in 16 games.
After Alexi Casilla's double in the fifth made it 3-2, Dunn and Viciedo went deep off Scott Diamond (11-8) in the sixth to squash the Twins' comeback attempt.
ANGELS 4, ROYALS 3
KANSAS CITY, Mo. (AP) — Mark Trumbo hit a three-run homer and Dan Haren pitched effectively into the sixth inning.
Trumbo, who had hit just .177 with 62 strikeouts in his previous 37 games to drop his average from .306 to .268, homered off Will Smith (5-8) in the second inning.
Haren (11-11) improved to 3-1 in his past four starts, holding the Royals to three runs, two earned, and five hits, while walking one and striking out five. He also moved to 4-0 in five career starts at Kansas City.
Torii Hunter, who has 17 RBIs in his past 18 games, singled home Erick Aybar, who had doubled, in the first inning.
After Haren departed, the Royals managed just one hit off Angels relievers Nick Maronde, Garrett Richards, Scott Downs, Jordan Walden and Kevin Jespen.
After closer Ernesto Frieri gave up two home runs in the ninth Saturday to blow a save and take the loss, Jespen was summoned in the ninth and picked up his second save in four chances. Jespen has held opponents to one earned run in 11 2-3 innings in his last 12 outings.
BLUE JAYS 5, RED SOX 0
TORONTO (AP) — Adeiny Hechavarria hit a two-run home run and Omar Vizquel had two hits.
The game was scoreless until the bottom of the seventh, when Yan Gomes grounded a two-out single up the middle against Jon Lester (9-12), just the second hit for the Blue Jays.
Rajai Davis came on as a pinch runner and stole second, then scored on Vizquel's single to centre. The base hit was Vizquel's 2,872nd, moving him one behind Hall of Fame slugger Babe Ruth for 41st place on the career list.
Hechavarria hit Lester's next pitch into the second deck in left, just his second career home run.
Brandon Lyon (3-0) pitched 2-3 of an inning for the win. Darren Oliver worked the eighth and Casey Janssen finished.