Matt Kartozian-USA TODAY Sports

Jesus Sanchez hit a three-run homer and Joey Wendle singled in the go-ahead run in the ninth inning as the Miami Marlins beat the Arizona Diamondbacks 5-4 in the rubber match of a three-game series on Wednesday afternoon in Phoenix.

Miami is 12-0 in one-run games, the best record in major league history to start a season. The 1972 New York Mets won their first 11 such games.

Sanchez doubled against Andrew Chafin (2-1) to begin the top of the ninth inning and was replaced by pinch-runner Bryan De La Cruz. After Miguel Castro relieved Chafin, De La Cruz moved to third on Jon Berti's groundout and scored on Wendle's double to left field.

Sanchez and Peyton Burdick had two hits apiece for Miami, which concluded its six-game road trip with a 3-3 mark. Dylan Floro (2-1) pitched a scoreless eighth inning for the win, and A.J. Puk worked around a two-out single in the ninth for his sixth save.

Arizona starter Merrill Kelly retired the first nine batters in order before running into trouble in the fourth inning. Sanchez came to the plate with two runners on and one out and crushed a 441-foot, three-run homer to center.

Sanchez is batting .400 (16-for-40) with seven doubles, three homers and 10 RBIs over his last 12 games.

Arizona responded with four runs in the bottom of the fourth. The D-backs pushed a run across after Edward Cabrera walked four of the first five batters in the inning.

After Corbin Carroll scored on a balk, Geraldo Perdomo singled in a run and Cabrera was relieved by Steven Okert. The D-backs capped the rally when Alek Thomas scored from third on Pavin Smith's groundout.

Cabrera allowed four runs on two hits with four walks and five strikeouts in 3 1/3 innings. He has issued at least four walks in three of his last four outings.

Miami pulled even in the fifth inning when Burdick hit a leadoff double and was sacrificed to third before scoring on Garrett Hampson's single to left field.

Kelly was lifted after giving up four runs on four hits over six innings. He walked one and struck out six while throwing 97 pitches.

Miami second baseman Luis Arraez went 0-for-3 with a walk, snapping his 12-game hitting streak.

More must-reads:

TODAY'S BEST
Mavericks come from behind to down Thunder, take 2-1 series lead
Tigers lose veteran starting pitcher to injury
Justin Allgaier dominates at Darlington for first win of 2024
Rangers ace continues to be plagued by nerve irritation in thumb
Cowboys hint at timeline for extension talks with offensive star
Former Packers WR makes bold prediction about Jordan Love
Watch: Paul Skenes wastes no time showing why Pirates drafted him No. 1 overall
Broncos release former Super Bowl champion WR
Nationals had 'substantive discussions' with former top prospect about extension
Patriots make unsurprising decision on top executive
Cowboys release veteran WR
Longtime Steelers DT Cameron Heyward hints contract extension is coming
'Great mind': One-time NBA champion endorses candidate for Lakers HC job
Jrue Holiday jokes about beating departing Celtics assistant who just landed Hornets job
Orioles manager explains Craig Kimbrel's new role
Rays activate key bullpen arm from injured list
Former NBA big man sentenced to 40 months in prison
Nuggets coach got heated with Timberwolves fans
Nuggets make incredible NBA history with Game 3 win
Steelers first-round pick has already 'apologized' to new locker mate