MIAMI — Jose Fernandez pitched seven innings and appeared to avoid a serious injury when he tweaked his right leg on his final pitch Wednesday night, helping the Miami Marlins beat Kansas City 3-0 to snap the Royals’ nine-game winning streak.

Fernandez (13-7) pulled up after striking out Christian Colon to end the seventh and rubbed his right knee before limping to the dugout.

ASTROS 5, PIRATES 4: Evan Gattis hit a two-run homer and Carlos Correa got two hits and scored twice, leading Houston to a win at Pittsburgh.

ORIOLES 10, NATIONALS 8: Baltimore closer Zach Britton saw his remarkable streak of 43 straight games without allowing an earned run end, then shut down a ninth-inning rally in a win at Washington.

The Nationals scored five times in the ninth, one of them charged to Britton. But after his own mistake helped Washington put runners on first and second with one out, Britton got Ryan Zimmerman to hit into a double play.

RANGERS 6, REDS 5: Yu Darvish hit only the second homer by a Texas pitcher and Adrian Beltre hit a tiebreaking double in the eighth inning for a split of their two-game interleague series at Cincinnati.

PHILLIES 5 WHITE SOX 3: Tommy Joseph and Cesar Hernandez homered to back Jerod Eickhoff in a win at Chicago.

AMERICAN LEAGUE

YANKEES 5, MARINERS 0: Rookie Gary Sanchez kept up his torrid stretch with his seventh home run in the past nine games, and Masahiro Tanaka won his fourth straight start for visiting New York.

Tanaka (11-4) threw seven shutout innings and got the better of his former Japan League teammate Hisashi Iwakuma (14-9).

The Yankees took 2 of 3 from the Mariners, one of the teams they’re chasing in the AL wild-card race.

Sanchez homered into the second deck in left field in the first inning on the first pitch from Iwakuma, his ninth home run in 18 games since joining the lineup Aug. 3.

ATHLETICS 5, INDIANS 1: Kendall Graveman pitched into the seventh inning to become host Oakland’s first 10-game winner this season.

The A’s took 2 of 3 games from the AL Central leaders, who had swept a three-game set from Oakland in July. Cleveland went into the day with the best record in the American League, but was held to one run for the third consecutive game.

ANGELS 8, BLUE JAYS 2: Albert Pujols moved into sole possession of 10th place on baseball’s all-time list by hitting his 584th home run, Matt Shoemaker pitched six shutout innings and Los Angeles snapped an 11-game road losing streak with a victory at Toronto.

Pujols finished 4 for 4 with three RBI.

TIGERS 9, TWINS 4: Miguel Cabrera had four hits, including his 28th home run, and Justin Upton added a three-run homer for visiting Detroit.

NATIONAL LEAGUE

CUBS 6, PADRES 3: Major league ERA leader Kyle Hendricks pitched six effective innings and Chicago finished off a three-game sweep with a win at San Diego. Hendricks (12-7) gave up two runs and four hits, striking out eight and leaving with a 2.19 ERA.

CARDINALS 8, METS 1: Matt Carpenter, Randal Grichuk and Stephen Piscotty homered off Mets starter Jacob deGrom, powering St. Louis to a win at home.

BREWERS 7, ROCKIES 1: Ryan Braun hit two home runs and host Milwaukee tied a season high with its fourth straight win.