ST. PETERSBURG, Fla. — Alex Rodriguez homered for the first time since coming off the disabled list, Masahiro Tanaka pitched seven shutout innings and the New York Yankees beat the Tampa Bay Rays 4-1 on Friday night.

Rodriguez returned Thursday after missing three weeks with a strained right hamstring. His sixth homer of the season and 693rd overall off Chris Archer came during a three-run sixth.

Tanaka (3-0) scattered two hits and struck out four to run his career-best unbeaten streak to 11 consecutive starts, dating to last season.

Andrew Miller gave up a single and hit a batter during a scoreless eighth. Kirby Yates allowed Steve Pearce’s two-out solo homer in the ninth before Aroldis Chapman got the final out.

Carlos Beltran homered in the eighth for the Yankees.

Archer (3-6) allowed four runs – one earned – and four hits in eight innings for the Rays, who have lost six of seven.

ORIOLES 6, INDIANS 4: Chris Davis’ RBI double broke a seventh-inning tie, Manny Machado went 4 for 5 and Baltimore ended a four-game losing streak with a victory at Cleveland.

Mark Trumbo followed Davis’ clutch hit with a two-run homer, his AL-leading 15th of the season, and a lineup tweak by Manager Buck Showalter woke up a slumbering offense that scored nine runs in its losing streak.

ROYALS 7, WHITE SOX 5: Eric Hosmer had three hits, including a home run, and drove in four runs as the Kansas City Royals rallied to win at home.

NATIONAL LEAGUE

CUBS 6, PHILLIES 2: Jorge Soler, David Ross and Kris Bryant hit long home runs to back Jon Lester and lead host Chicago over Philadelphia.

Lester (5-3) rebounded from his shortest start of the season by giving up two runs and six hits while pitching into the seventh.

CARDINALS 6, NATIONALS 2: Stephen Piscotty hit a grand slam off Max Scherzer during a five-run third inning and Jaime Garcia quieted Washington’s lineup as St. Louis won on the road.

METS 6, DODGERS 5: Curtis Granderson homered leading off the bottom of the ninth inning to give New York a victory at home over Los Angeles.

The win moved New York back into the NL East lead, by percentage points over Washington, giving Manager Terry Collins a happy 67th birthday

BRAVES 4, MARLINS 2: Nick Markakis hit a tie-breaking, two-run single off third baseman Nick Prado’s glove with two outs and the bases loaded in the eighth inning and Atlanta won for just the third time in 23 games at home.

BREWERS 9, REDS 5: Aaron Hill hit two solo homers, Jonathan Lucroy added a solo shot and drove in three runs, and host Milwaukee handed Cincinnati its 11th straight loss.

INTERLEAGUE

PIRATES 9, RANGERS 1: Jonathon Niese outpitched Cole Hamels with six strong innings, ending the Texas lefty’s career-best winning streak at 12 games as Pittsburgh won on the road.

Andrew McCutchen had one of four home runs for the Pirates.