MIAMI — Yoenis Cespedes hit three doubles and the New York Mets took over first place in the NL East, routing the Miami Marlins 12-1 Monday night.

Fresh off sweeping Washington, the Mets won their fourth in a row and moved a game ahead of the Nationals for the division lead.

There was a brief delay with two outs in the bottom of the ninth inning after Tomas Telis lost control of his bat and it flew into the stands and hit a fan. There was no immediate word on the extent of the man’s injury.

Cespedes, acquired last week from Detroit, played for the third time with the Mets and tied the team record for doubles in a game. He drove in four runs.

Bartolo Colon (10-10) had lost six straight decisions. He pitched eight innings and allowed one run.

DIAMONDBACKS 6, NATIONALS 4: Rookie Zack Godley pitched six scoreless innings to continue a stellar start to his career, and Arizona homered four times in a a win at Washington.

Nick Ahmed homered and had four hits as the Diamondbacks improved to 5-2 on their 10-game, bi-coastal road trip while handing the Nationals their fourth straight loss and knocking them out of first place in the NL East.

BRAVES 9, GIANTS 8: Adonis Garcia hit a two-run homer in the 12th inning as Atlanta completed its final comeback in a win at home.

Garcia made his major league debut this season and has three home runs in 11 games.

The Giants have lost two in a row for the first time since stopping a seven-game skid in early July.

PADRES 13, BREWERS 5: San Diego scored six times in the first seven innings en route to blasting host Milwaukee, the sixth straight loss for the Brewers.

AMERICAN LEAGUE

BLUE JAYS 5, TWINS 1: David Price struck out 11 over eight innings to win his Blue Jays debut and Josh Donaldson hit a tiebreaking home run as Toronto won the opener of a four-game series between a pair of AL wild-card contenders.

Price (10-4) allowed one run and three hits. He threw 119 pitches, two shy of his season high.

Acquired from Detroit last Thursday for a trio of minor league left-handers, Price received a standing ovation from the sellout crowd of 45,766 as he walked in from the bullpen before the game.

RANGERS 12, ASTROS 9: Adrian Beltre became the first major leaguer since the 1930s to hit for his third career cycle as host Texas held on for a win over AL West-leading Houston.

Beltre’s solo homer in the fifth, a liner deep into the seats in left field, completed the cycle against three Houston pitchers.

RAYS 5, WHITE SOX 4: Mikie Mahtook singled with two outs in the top of the ninth to drive in Logan Forsythe and give Tampa Bay a win at Chicago.

Forsythe started the winning rally with a one-out walk. Evan Longoria had three hits and an RBI.