AMERICAN LEAGUE: Blue Jays 8, Red Sox 5

Mookie Betts homered in the ninth inning to complete his first career cycle during host Toronto’s win over Boston on Thursday night.

Betts is the 21st Red Sox player to hit for the cycle. He singled and scored in the first inning, tripled in the second and doubled in the fourth against starter Ryan Borucki. After walking in the sixth, Betts hit a one-out drive off Ken Giles in the ninth for his 27th homer of the season.

Betts is the first Boston player to hit for the cycle since Brock Holt in 2015. Betts, Holt and Leon Culberson in 1943 are the only Red Sox to cycle from the leadoff spot.

The AL MVP candidate raised his average to .347 on the season with 59 RBI and a 1.102 OPS.

Boston (81-35) lost for the first time in seven games but still has the best record in baseball.

Yankees 7, Rangers 3

Giancarlo Stanton hit the hardest homer ever measured by Major League Baseball’s Statcast system, Neil Walker hit two more home runs and host New York beat Texas.

Stanton’s 28th homer was measured at 121.7 mph, the fastest long ball tracked by Statcast since the system was introduced in 2015.

Miguel Andujar and Aaron Hicks also went deep, helping the Yankees win their fourth straight since a five-game skid that included a four-game sweep at AL East-leading Boston.

J.A. Happ (12-6) pitched six effective innings in his return from hand, foot and mouth disease.

Rays 5, Orioles 4

Jake Bauers drove in two of his three runs with a go-ahead two-run single in the seventh inning and host Tampa Bay beat Baltimore.

Bauers’ decisive hit off Cody Carroll (0-1) came in the Rays’ franchise-record tying sixth consecutive one-run game. Tampa Bay has played 49 (22-27) one-run games overall, tops in the majors.

The Orioles (35-80) open a four-game series Friday night against Boston. One victory by the AL East-leading Red Sox would eliminate Baltimore from the contention for the division title.

Baltimore had taken a 4-3 lead earlier in the seventh when Renato Nunez hit a solo homer off Yonny Chirinos (1-4).

NATIONAL LEAGUE: Nationals 6, Braves 3

Gio Gonzalez pitched seven strong innings for his first victory since May 28 to help host Washington split a four-game series with Atlanta.

Gonzalez (7-8) snapped a personal seven-game losing streak and had gone 11 consecutive starts without a victory. He allowed three hits and one walk while striking out three. Nick Markakis’ solo homer to lead off the second was the lone run he allowed.

Ronald Acuna Jr. homered for Atlanta. Wes Parsons (0-1) was the loser.

Padres 8, Brewers 4

Hunter Renfroe hit a go-ahead grand slam in the ninth inning, his fourth straight game with a home run, and San Diego beat host Milwaukee.

Down 4-2 in the ninth, San Diego came back against relievers Corey Knebel and Joakim Soria.

Knebel (2-3) walked the bases loaded and allowed a run-scoring infield single to Travis Jankowski before Soria entered to try to escape the jam. Soria retired Eric Hosmer before Renfroe hammered a 1-2 pitch deep into the left-field bleachers for his grand slam. Renfroe became the first Padres player to hit home runs and have multiple RBI games in four consecutive games.

Franmil Reyes added a solo homer off Jacob Barnes in the six-run rally.