BOSTON — J.J. Hardy, Nolan Reimold and Jonathan Schop homered and the Baltimore Orioles beat Boston 6-3 Tuesday night to pull within two games of the AL East-leading Red Sox.

The Orioles also tied Toronto for the wild-card lead.

Dylan Bundy (9-5) gave up three runs over 5 1/3 innings. Zach Britton pitched a scoreless ninth for his 42nd save.

Xander Bogaerts homered for Boston, which had won five of six.

Drew Pomeranz (10-12) gave up five runs and four hits in two-plus innings.

CARDINALS 4, CUBS 2

ST. LOUIS — Brandon Moss broke out of a lengthy slump with a tiebreaking home run and Aledmys Diaz connected in his return to the starting lineup, leading St. Louis over Chicago.

The Cardinals ensured that the runaway Cubs won’t clinch the NL Central at Busch Stadium. Chicago’s magic number is three, and the series in St. Louis wraps up Wednesday.

St. Louis remained a half-game behind the New York Mets for the second wild-card spot.

Moss began the day mired in a 1-for-41 skid. He hit a two-run homer in the sixth off Jason Hammel (14-9).

Alex Reyes (2-1) pitched 4 1-3 innings of scoreless relief. Kevin Siegrist got his second save.

MARINERS 8, ANGELS 0

ANAHEIM, Calif. — Taijuan Walker pitched a three-hitter for his first career shutout as Seattle won its season-high seventh straight.

Walker (6-10) was perfect through 5 2/3 innings before Kaleb Cowart reached o throwing error by shortstop Ketel Marte. Kole Calhoun ended Walker’s no-hit bid with a leadoff single in the seventh inning. Walker matched a career high with 11 strikeouts in his first complete game since July 31, 2015.

Nelson Cruz and Norichika Aoki hit home runs and Seth Smith hit a grand slam to close the scoring.

Angels rookie Alex Meyer (0-3) gave up four earned runs and five hits over four innings in his fourth major league appearance.

YANKEES 3, DODGERS 0

NEW YORK — Jacoby Ellsbury and Didi Gregorius came off the bench and hit back-to-back homers in the seventh inning, sending the Yankees over the NL West leaders.

Gary Sanchez added a leadoff home run in the eighth as New York stayed two games behind in the AL wild-card race.

Adam Warren (3-1) retired both batters he faced, and Dellin Betances got four outs for his 11th save.

Ross Stripling (4-7) gave up homers on consecutive pitches.

RANGERS 3, ASTROS 2

HOUSTON — Jurickson Profar hit a tiebreaking single and AL West-leading Texas rallied for two runs in the ninth inning.

The Rangers improved to 15-3 against Houston this year. The Astros are 4 1/2 games back in the wild-card chase.

Rougned Odor fanned with one out in the ninth but reached on a wild pitch. He later scored on Elvis Andrus’ two-out triple against Ken Giles (2-4), and Profar singled.

Alex Claudio (4-1) pitched the eighth and Tanner Scheppers worked a perfect ninth for his first save.

RAYS 6, BLUE JAYS 2

TORONTO — Drew Smyly pitched 5 2/3 innings to remain unbeaten at Rogers Centre, Alexei Ramirez and Steven Souza Jr. hit home runs and Tampa Bay stopped Toronto.

The Blue Jays are tied with Baltimore for the AL wild-card spots. Toronto is 3-8 in September.

Ramirez hit a three-run homer off Marcus Stroman (9-8) in the fifth.

Smyly (7-11) is 4-0 at Toronto.

METS 4, NATIONALS 3, 10 INNINGS

WASHINGTON — T.J. Rivera hit his first major league home run, connecting for the Mets in the 10th off Washington closer Mark Melancon.

New York has won eight of 10 and is a half-game ahead of St. Louis for the second NL wild card.

Rivera drove in three runs. His shot off Melancon (2-2) helped snap the Nationals’ four-game winning streak.

Jeurys Familia (3-3) got the win despite allowing two runs in the ninth for his fourth blown save. Jerry Blevins struck out Daniel Murphy for the final out to earn his first save.

TWINS 8, TIGERS 1

DETROIT — Jorge Polanco homered and drove in four runs and Brian Dozier added three more hits to his torrid second half for Minnesota.

The Tigers lost for the third time in 14 games against Minnesota, costing them precious ground in a crowded race for the second AL wild card.

Kyle Gibson (6-9) dominated, allowing one run and five hits in eight innings.

Matt Boyd (5-4) took the loss in his worst outing since June. He gave up seven runs, eight hits and a walk in 3 2/3 innings.

ATHLETICS 5, ROYALS 4

KANSAS CITY, Mo. — Pinch hitter Yonder Alonso delivered a two-run double in the eighth inning to rally Oakland.

Defending World Series champion Kansas City dropped five games out of the wild-card race with only 18 games left.

Rookie Matthew Strahm (2-1) took the loss.

John Axford (6-4) pitched one inning. Ryan Madson closed for his 30th save in 36 tries.

WHITE SOX 8, INDIANS 1

CHICAGO — Todd Frazier and Carlos Sanchez each drove in two runs in a seven-run sixth inning and Chicago handed AL Central-leading Cleveland its second straight lopsided loss.

The Indians, who have allowed 19 runs in two games, maintained a six-game lead over Detroit.

Jose Quintana (12-10) held Cleveland to five hits over eight innings.

Trevor Bauer (11-7) took the loss.

MARLINS 7, BRAVES 5

ATLANTA — Ichiro Suzuki scored two runs and drove in another in the 900th multihit game of his career and Miami boosted its fading wild-card hopes.

Miami is five games out of a playoff spot.

Justin Nicolino (3-6) earned the win with two hitless innings. A.J. Ramos worked a perfect ninth for his 35th save.

Matt Wisler (6-12) got the loss.

Freddie Freeman hit his career-high 30th homer for Atlanta. Matt Kemp also homered.

PIRATES 5, PHILLIES 3

PHILADELPHIA — Sean Rodriguez had a pinch-hit three-run homer in the ninth inning to lift Pittsburgh.

The Pirates remained six games behind the Mets for the second NL wild card.

Rodriguez hit for pitcher Felipe Rivero (1-5) with two on and one out and connected off Jeanmar Gomez (3-4).

Tony Watson struck out two in the ninth for his 12th save.

REDS 6, BREWERS 4

CINCINNATI — Joey Votto homered and drove in two runs, Dan Straily pitched a career-high eight innings and Cincinnati took advantage of some sloppy Milwaukee fielding for its fifth straight win.

Straily (12-8) pitched around solo home runs by Keon Broxton and Jonathan Villar to improve to 8-2 since the All-Star break.

Matt Garza (5-7) allowed five runs, only one earned, in five innings.

DIAMONDBACKS 11, ROCKIES 4

PHOENIX — Jean Segura homered twice and Brandon Drury added his second homer in two nights to lead Arizona.

Segura hit solo shots off starter Jorge De La Rosa (8-8) in the first and fourth innings, setting a career high with his 13th and 14th homers. Drury homered in the fifth to give the Diamondbacks a 7-4 lead, and Paul Goldschmidt had three hits, scored three runs and stole his 25th base in support of winning pitcher Robbie Ray (8-13).

The Rockies dropped to 7 1/2 games behind St. Louis for the second NL wild card.

Matt Koch gave up two hits and struck out four over four innings for his first save.

PADRES 6, GIANTS 4

SAN FRANCISCO — Ryan Schimpf hit a go-ahead three-run homer with two outs in the ninth inning for the San Diego Padres as the Giants’ bullpen gave up a lead and chance to gain ground on the division-leading Dodgers.

Hunter Strickland (3-3) started the ninth and allowed two runs, three singles and a bases-loaded walk to Wil Myers, then Steven Okert entered to try to get the final out. Schimpf clobbered the fourth offering and sent it into the center-field bleachers for his 19th homer.

Jake Smith (1-0) pitched the eighth for his first career victory after San Diego claimed him from the Giants in July, then Kevin Quackenbush finished for his second save as some Giants fans booed.