NEW YORK (AP) Yoenis Cespedes homered with two outs in the bottom of the 10th inning to give the New York Mets a 2-1 victory over the Miami Marlins on Monday night.

Jose Reyes dashed home to score the tying run in the eighth on a dangerous collision at the plate. Two innings later, Cespedes, who sat out Sunday's loss to Philadelphia after his nagging right quadriceps flared up, launched a no-doubt drive to left-center on a 1-1 pitch from Nick Wittgren (4-3).

The Mets pulled even with Miami for second place in the NL East. With its seventh victory in nine games, New York remained 2 1/2 games behind St. Louis for the league's second wild card.

More from FoxSports

Rookie left-hander Josh Smoker (1-0) struck out two in a perfect inning for his first major league win.

CARDINALS 6, BREWERS 5

MILWAUKEE (AP) - Stephen Piscotty scored on a throwing error in the ninth inning after Carlos Martinez struck out a career-high 13, leading the St. Louis past Milwaukee.

With two on and nobody out in the ninth, Yadier Molina dropped down a bunt. Reliever Tyler Thornburg (5-5) threw to third base for a force out, but Jonathan Villar's throw to first was wild, allowing Piscotty to score.

After Martinez held Milwaukee to one run over six innings, the Brewers scored four runs in the seventh to take a 5-3 lead. St. Louis tied it in the eighth on a two-run homer by Randal Grichuk off Corey Knebel.

Seung Hwan Oh pitched a perfect ninth for his 14th save. Miguel Socolovich (1-0) pitched 1 2/3 scoreless innings to pick up his first win.

Jedd Gyorko and Kolten Wong each hit solo home runs for the Cardinals.

INDIANS 1, TWINS 0, 10 INNINGS

CLEVELAND (AP) - Jason Kipnis' 10th-inning single scored Chris Gimenez as Cleveland handed Minnesota its 11th straight loss.

Kipnis lined a 1-0 pitch from Brandon Kintzler (0-1) with one out to left-center to finally break up the scoreless game.

Abraham Almonte pushed a bunt past Kintzler and beat the throw to first to start the inning. Gimenez fouled off two bunt attempts before poking a single through the right side with Almonte moving to second.

Third baseman Miguel Sano fielded Rajai Davis' slow roller. Third base umpire Ron Kupla ruled Sano tagged Almonte and the call was upheld after a Cleveland challenge.

Kipnis then hit the second pitch from Kinztler for the game-winner.

Zach McAllister (3-2) worked out of a bases-loaded jam in the 10th, retiring Max Kepler on a fly ball to end the inning.

TIGERS 4, WHITE SOX 3

DETROIT (AP) - Jarrod Saltalamacchia hit a two-run homer in the bottom of the eighth inning to lift Detroit.

Justin Upton also went deep for the Tigers, who pulled within a game of Baltimore for the American League's second wild card.

Detroit trailed 3-2 after a solo homer in the seventh by Chicago's Tyler Saladino, but Saltalamacchia's towering drive to right-center off Nate Jones (5-3) put the Tigers ahead.

Justin Wilson (4-4) got the win in relief, and Francisco Rodriguez pitched a perfect ninth for his 37th save in 40 chances.

Saladino drove in all three Chicago runs. James Shields allowed two runs and six hits in six innings.

RED SOX 9, RAYS 4

BOSTON (AP) - Rick Porcello became the majors' first 18-game winner and the first Red Sox pitcher in 70 years to open a season 13-0 in Fenway Park, going seven solid innings in Boston's victory over Tampa Bay.

Mookie Betts hit his 30th homer, a solo shot, and drove in two runs for the Red Sox, who hold the AL's first wild-card spot but had lost four of five. Brock Holt had three hits and drove in two runs, Travis Shaw had three hits and Chris Young added a tiebreaking two-run double for Boston.

Porcello (18-3) allowed three runs and six hits, striking out seven without issuing a walk.

Matt Andriese (6-6) took the loss, giving up a season-high seven runs in four-plus innings. The Rays, buried in last in the AL East, have lost three of four.

NATIONALS 4, PHILLIES 0

PHILADELPHIA (AP) - Tanner Roark threw seven impressive innings, Jayson Werth hit a solo homer and Washington beat Philadelphia.

Roark (14-7) allowed four singles and struck out five. Marc Rzepczynski tossed a perfect eighth and Mark Melancon finished off the four-hitter.

Phillies rookie Jake Thompson (1-4) allowed two runs and seven hits in seven innings. It was the longest and best of his five career starts.

Werth lined a solo shot to left in the first against his former team.

Bryce Harper raced home from first on Anthony Rendon's single to left-center to make it 2-0 in the first. Clint Robinson and Trea Turner had RBI singles off Frank Herrmann in the ninth.

CUBS 8, PIRATES 7, 13 INNINGS

CHICAGO (AP) - Miguel Montero hit a game-ending RBI single in the 13th inning, and Chicago rallied for a wild win over Pittsburgh.

Dexter Fowler, Kris Bryant and Anthony Rizzo set the stage for Montero's clutch swing with consecutive RBI singles against Jeff Locke (9-8), plating the tying run. After Ben Zobrist was walked intentionally, Montero lined a clean single into left field.

Rob Zastryzny (1-0) got his first major league win despite allowing Josh Harrison's sacrifice fly in the top half of the inning. Jorge Soler and Willson Contreras homered for the Cubs, and Javier Baez collected four hits.

Pittsburgh had won eight straight road games. It fell 1 1/2 games back of St. Louis for the second NL wild card.

BLUE JAYS 5, ORIOLES 1

BALTIMORE (AP) - Josh Donaldson hit his fourth homer in two days and Jose Bautista also went deep in support of Marco Estrada, leading Toronto past Baltimore.

The Blue Jays lead the third-place Orioles by four games in the AL East. Baltimore has lost four out of five and is clinging to the second wild card.

Donaldson hit a solo homer in the fourth to tie it 1-1. The AL MVP had three homers in a 9-6 win over Minnesota on Sunday.

Estrada (8-6) allowed one run and four hits with four strikeouts over seven-plus innings. The Blue Jays have won three of his four starts against the Orioles this year.

J.J. Hardy provided Baltimore's only run with his eighth homer in the third.

Baltimore left-hander Wade Miley (8-11) allowed three runs and five hits while tying a season high with nine strikeouts over seven innings.

ROYALS 8, YANKEES 5

KANSAS CITY, Mo. (AP) - Dillon Gee kept the Royals' momentum going with six sharp innings, Alcides Escobar hit a three-run homer and Kansas City beat the New York Yankees.

Gee (6-7) allowed only four hits and a run in the latest impressive start by the Royals' staff, helping the reigning World Series champions win for the 18th time in 22 games.

Lorenzo Cain, Kendrys Morales and Alex Gordon drove in runs off Michael Pineda (6-11) during a five-hit salvo in the first inning. Pineda then retired 15 straight before getting into a two-on, no-outs jam in the seventh that led to Escobar's homer off reliever Blake Parker.

Starlin Castro drove in two runs for the Yankees, the second in a four-run eighth inning that forced Kansas City manager Ned Yost to summon fill-in closer Kelvin Herrera.

RANGERS 6, MARINERS 3

ARLINGTON, Texas (AP) - Yu Darvish struck out nine in 6 2/3 innings and Carlos Beltran homered among three hits, helping Texas beat Seattle.

The American League-leading Rangers won the first of six straight games at home against the two teams chasing them in the AL West and dropped the Mariners into third place, a game behind Houston and 9 1/2 back of Texas.

Darvish (5-3) easily outpitched fellow Japanese right-hander Hisashi Iwakuma for his third straight win, leaving to a standing ovation with a 6-1 lead in the seventh after throwing 110 pitches, the most since his return from Tommy John surgery.

Sam Dyson struck out two in a perfect ninth for his 30th save, giving Texas 13 strikeouts.

Iwakuma (14-10) lost his third straight start while matching his shortest outing of the season at three innings.

ASTROS 6, ATHLETICS 0

HOUSTON (AP) - Jose Altuve homered, Joe Musgrove and three relievers combined on a four-hitter as Houston beat Oakland.

Musgrove (2-2) struck out seven, walked three and allowed three hits over 5 1/3 innings, and then Luke Gregerson, Pat Neshek and Brad Peacock closed things out. Musgrove had allowed 13 runs over his last two starts.

Houston closed within two games of the second AL wild card with the win and Baltimore's loss.

A's starter Sean Manaea (5-9) left after 3 1/3 innings with a right rhomboid strain.

Altuve hit his second homer in two games to lead off the sixth and extend Houston's lead to 3-0.

Alex Bregman hit a two-run single and Carlos Correa had an RBI single as part of a three-run seventh.

ROCKIES 8, DODGERS 1

DENVER (AP) - Jon Gray pitched six scoreless innings, Nick Hundley hit a two-run homer and the Colorado beat NL West-leading Los Angeles.

Gray (9-6) surrendered four hits and struck out eight in a crisp performance for his first win since Aug. 2. He was helped out by centerfielder Charlie Blackmon, who made a sliding catch in the fifth to thwart a big inning.

DJ LeMahieu had a two-run double in a five-run seventh that turned a pitching duel into a rout.

Kenta Maeda (13-8) was electric once again at Coors Field - except for a hanging slider to Hundley in the fourth. The right-hander with the quirky delivery allowed four hits over five innings. Maeda has a 2.12 ERA in three starts at the hitter friendly park.

ANGELS 9, REDS 2

ANAHEIM, Calif. (AP) - Mike Trout and Albert Pujols each hit one of the Angels' five home runs in a win over Cincinnati.

Trout went 3 for 4 with two RBIs and two runs, joining Alex Rodriguez as one of two players to score 100 runs five times before his age-25 season.

Pujols hit his 586th homer, tying Frank Robinson for ninth on the career list.

Kole Calhoun was a triple short of the cycle, and C.J. Cron homered among his three hits for the Angels.

Matt Shoemaker (9-13) allowed two runs and seven hits over seven innings. After giving up a two-run homer to Joey Votto in the first, Shoemaker settled in to win his third straight decision.

Dan Straily (10-7) allowed seven runs in 2 2/3 innings.