CLEVELAND — Edwin Encarnacion and the Cleveland Indians won their 16th straight game, extending the best streak in franchise history by beating the Baltimore Orioles 5-0 Friday night.

Encarnacion hit a three-run homer in the first inning into some trees next to Heritage Park, the team’s hallowed area where past Cleveland stars and teams are immortalized.

Mike Clevinger (9-5) improved his chances to pitch in the postseason with six strong innings as AL Central leaders became just the third team in the expansion era — since 1961 — to win 16 straight in a season.

Cleveland’s string is the longest in the majors since Oakland won 20 straight in 2002. The longest winning streak in major league history is 21 by the 1935 Chicago Cubs.

The 1916 New York Giants had a string of 26 wins and one tie.

Encarnacion hit his 34th home run, connecting off Wade Miley (8-12).

PADRES 10, DIAMONDBACKS 6

PHOENIX — The Arizona Diamondbacks’ team-record 13-game winning streak ended when Manuel Margot drove in four runs that led San Diego.

Down 8-0, the Diamondbacks scored twice in the fifth and then added four more runs in the sixth. Padres reliever Craig Stammen retired two batters with the bases loaded to preserve an 8-6 lead.

Jordan Lyles (1-2), in his second start for the Padres, pitched into the sixth.

The Padres rocked Patrick Corbin (13-12) for eight runs on 11 hits, seven for extra bases, in 4 1-3 innings.

ROCKIES 5, DODGERS 4

LOS ANGELES — DJ LeMahieu doubled home the go-ahead run and Colorado sent NL West-leading Los Angeles to its eighth straight loss.

The Dodgers blew a 4-1 lead in the first behind Yu Darvish (2-3), who was chased after giving up four runs in the fifth.

Los Angeles still owns the best record in baseball at 92-49, but has equaled its longest skid since May 2013. The majors’ best team at home this season has lost seven straight at Chavez Ravine for the first time since August 1999. The Dodgers have dropped 13 of 14 overall.

Chris Rusin (5-0) won in relief and Greg Holland got his 38th save.

ATHLETICS 9, ASTROS 8

OAKLAND, Calif. — Jed Lowrie singled home the winning run in the ninth inning after Boog Powell’s tying home run, and Oakland snapped Houston’s seven-game winning streak.

Marcus Semien hit a grand slam for the Athletics.

Josh Reddick homered, doubled twice and drove in four runs for the AL West-leading Astros. Jose Altuve and Yuli Gurriel added two-run homers.

Blake Treinen (2-4) got the win. Ken Giles (1-3) took the loss.

Houston starter Collin McHugh exited after just three innings because of a fingernail injury. The Astros had won 10 in a row at the Coliseum.

MARINERS 4, ANGELS 3

SEATTLE — Ben Gamel hit a three-run homer to give Seattle an early lead, Mike Leake overcame first-inning problems to pitch six solid innings, and the Mariners snapped a three-game losing streak.

Leake (2-0) allowed two earned runs and struck out five, as Seattle got a needed victory to continue hanging around the edges of the AL wild-card race.

Los Angeles starter Ricky Nolasco (6-13) was unable to make it out of the fourth.

NATIONALS 11, PHILLIES 10

WASHINGTON — Michael A. Taylor raced for an inside-the-park grand slam when center fielder Odubel Herrera misplayed his line drive, and Washington eliminated Philadelphia from postseason contention.

Herrera misread Taylor’s hit off Jake Thompson (1-2) in the third inning, taking a few steps in before leaping as the ball soared over his head. Herrera chased it down on the warning track and threw to the infield, but shortstop J.P. Crawford missed up the third-base line with his relay, allowing Taylor to slide home safely.

Taylor set a career high with five RBIs and matched a personal best with four hits. Trea Turner homered and drove in three, and Max Scherzer (14-5) allowed four runs over six innings.

Washington has won five straight and reduced its magic number for winning the division to three. Philadelphia is the first team in the majors eliminated from playoff contention.

Herrera extended his hitting streak to 21 games, longest in the majors this year.

RED SOX 9, RAYS 3

BOSTON — Drew Pomeranz did not allow a hit until the fifth inning and gave up two runs over six and Mookie Betts hit a three-run homer for the Red Sox.

It was the third straight victory for the Red Sox, who lead the second-place New York Yankees by 4 1/2 games atop the AL East.

Pomeranz (15-5) struck out seven, allowed two hits and walked two en route to tying Chris Sale for the team lead in victories.

Jesus Sucre hit a two-run homer for the Rays, who have homered in a season franchise record 18 straight games.

Chris Archer (9-9) was roughed up for a season-high eight runs, six earned, and nine hits in three-plus innings.

Betts clanged his homer off Pesky’s Pole in right field in the first inning.

BREWERS 2, CUBS 0

CHICAGO — Ryan Braun hit his 300th homer and Jimmy Nelson combined with three relievers on a five-hitter as Milwaukee beat Chicago in the first regular-season Friday night game at Wrigley Field.

Milwaukee pulled within four games of Chicago for the NL Central lead.

Braun hit a two-run drive in the first inning against John Lackey. Nelson pitched four-hit ball over five innings before leaving with a sore right arm, and the Brewers opened the weekend series on a winning note after dropping four of five.

Nelson (12-6) struck out seven and walked two while winning his third straight start.

Corey Knebel worked the ninth for his 33rd save in 38 chances.

Lackey (11-11) settled down after Braun connected, holding the Brewers to two runs and four hits over seven innings. He struck out nine and walked two.

RANGERS 11, YANKEES 5

ARLINGTON, Texas — Martin Perez won his seventh straight start after playoff-hopeful Texas rallied from an early four-run deficit and beat the AL wild card-leading Yankees.

Elvis Andrus had three hits, including the tiebreaking two-run single in the fifth that put the Rangers up 7-5.

Perez (12-10) became the first Rangers pitcher to win seven straight starts since Kenny Rogers set the club record in 2005 with eight in a row. The left-hander allowed five runs, only two earned, while giving up eight hits over 5 2/3 innings.

Nomar Mazara homered for Texas, which stayed within 2 1/2 games of Minnesota for the AL’s second wild card.

Andrus, hitting .400 (28 of 70) over his last 16 games, also had two doubles.

Masahiro Tanaka (11-11) had won his last three starts.

TIGERS 5, BLUE JAYS 4

TORONTO — Third baseman Jeimer Candelario started Detroit’s first triple play in 16 years, Nicholas Castellanos slugged his third career grand slam and the Tigers beat Toronto.

With runners at first and second, Candelario backhanded Kevin Pillar’s grounder and stepped on the bag. Second baseman Ian Kinsler took his feed and made a quick turn for the second out, and his throw to first narrowly beat Pillar for the Tigers’ first triple play since Aug. 1, 2001.

It was the first time Detroit had a triple play and a grand slam in the same game.

Castellanos hit his slam off Marcus Stroman (11-7) in the third inning, and Kinsler added a solo shot in the seventh.

Buck Farmer (4-2) allowed two runs, one earned, in five innings. Shane Greene got his seventh save.

TWINS 8, ROYALS 5

KANSAS CITY, Mo. — Eddie Rosario homered and drove in four runs, helping Minnesota beat Kansas City.

Rosario had a sacrifice fly in the first inning, hit his 21st home run in the third inning off Ian Kennedy (4-11) and knocked a two-out, bases-loaded single in the fourth. Rosario has 10 home runs and 28 RBIs in his past 30 games.

Ervin Santana (15-7) gave up four runs and five hits over five innings for the victory. He is 4-0 in nine starts since a July 21 loss. His 15 victories are tied for the AL lead.

Matt Belisle pitched the ninth for his seventh save.

CARDINALS 4, PIRATES 1

ST. LOUIS — Luke Weaver pitched shutout ball into the sixth inning and also drove in a run, helping St. Louis improve its postseason hopes.

The Cardinals have won seven of nine, pulling within four games of the NL Central-leading Cubs. St. Louis is even closer in the chase for the second wild-card spot.

Pittsburgh has lost three in a row.

Waver (5-1) has won four straight decisions. He gave up seven hits, walked none and struck out seven in 5 2/3 innings.

Juan Nicasio made his St. Louis debut and got four outs for his third save.

Trevor Williams (6-8) allowed four runs in 4 2/3 innings.

METS 5, REDS 1

NEW YORK — Jose Reyes homered twice, Seth Lugo pitched six shutout innings and New York beat Cincinnati for its third straight win.

Travis Taijeron got the Mets started when the 28-year-old rookie led off the second with his first major league home run. New York, which leads the National League in homers, has won 17 of its last 19 games against the Reds — including eight straight at Citi Field.

Reyes went deep off Amir Garrett (3-7) in the fifth, scoring Lugo and giving New York a 4-0 lead. Reyes also clubbed a solo shot in the third, becoming the 13th player to hit 100 homers in a Mets uniform.

Lugo (6-4) allowed four hits and walked one in his first win since July 25. A.J. Ramos got two outs for his 27th save.

GIANTS 9, WHITE SOX 2

CHICAGO — Pablo Sandoval snapped his 0-for-39 skid with a three-run homer, and Matt Moore pitched San Francisco past Chicago in an interleague game between last-place teams.

Denard Span also homered and Brandon Crawford had three hits with an RBI for the Giants, who have won back-to-back games after losing seven of eight.

Sandoval went 1 for 3 with four RBIs. His previous hit was a single on Aug. 25 at Arizona.

Avisail Garcia homered for the White Sox, who have dropped five straight.

Moore (5-13) allowed two runs and five hits in 6 2/3 innings. He won for just the second time in eight decisions.

Lucas Giolito (2-2) gave up five runs, three earned, and three hits in 5 1/3 innings. He was ejected by plate umpire Gabe Morales after he was lifted. White Sox manager Rick Renteria also was tossed, by crew chief Eric Cooper.

MARLINS 7, BRAVES 1

ATLANTA — Jose Urena allowed only three hits in 6 1/3 innings and added his first career RBI to stop Miami’s five-game skid.

Urena (13-6) gave up a fourth-inning homer to Freddie Freeman but little else. Atlanta’s only other hits off Urena were a second-inning single by Tyler Flowers in the second and a bunt single by Ozzie Albies in the sixth.

Miguel Rojas and Urena had back-to-back RBI singles off Mike Foltynewicz (10-12) in the second. Urena took a .077 batting average into the game and had not driven in a run in 69 career at-bats.