Bill Streicher-USA TODAY Sports

Alec Bohm hit a walk-off single in the 10th inning as the host Philadelphia Phillies overcame a two-run deficit in the ninth to earn a 6-5 victory over the Arizona Diamondbacks on Wednesday afternoon.

Bohm sent the Phillies to their third win in 10 games after Trea Turner's two-out, two-run homer in the ninth leveled things at 5-5. Craig Kimbrel (3-1) pitched a scoreless 10th to earn the victory.

After establishing a 5-0 lead, Arizona saw the Phillies creep within 5-3 in the sixth when Bohm lined an RBI single to center and Brandon Marsh followed with a two-run single.

The Diamondbacks' bullpen buckled down, with Kevin Ginkel recording the last out of the sixth and first two of the seventh before Scott McGough logged 1 1/3 scoreless innings.

Jose Ruiz came on for the ninth and got two quick outs but gave up Bryson Stott's single before serving up Turner's game-tying homer.

Ruiz (1-1) also gave up Bohm's game-winning single.

Stott had three hits while Bohm and Marsh each had two for the Phillies, who were able to avoid being swept in the three-game series.

Evan Longoria's two-run blast highlighted Arizona's four-run third, which also featured Emmanuel Rivera's two-run double. Rivera finished with three RBIs for the Diamondbacks, who had won nine of their last 11 games entering Wednesday.

Ketel Marte led off the first with a single, advanced to third on Corbin Carroll's double and scored on Rivera's groundout to give Arizona an early 1-0 lead.

The Diamondbacks then broke the game open in the third thanks to Rivera and Longoria before Philadelphia rallied.

Jeff Hoffman relieved Phillies starter Ranger Suarez at the beginning of sixth and issued three consecutive walks to load the bases with no outs. But Hoffman got out of the inning unscathed, picking up a pair of strikeouts before getting Jose Herrera to ground out.

Suarez gave up five runs on five hits in five innings. He walked one and fanned five.

Arizona starter Zac Gallen allowed two runs on five hits in 5 2/3 innings. He walked two and struck out three.

More must-reads:

TODAY'S BEST
Draymond Green shares tone-deaf take on fines from NBA
USWNT coach Emma Hayes instilling right mindset ahead of Olympics
Winnipeg Jets officially name head coach
Injury bug bites Orioles again as another starting pitcher lands on IL
Yankees' Hal Steinbrenner under fire over Juan Soto comments
Lonzo Ball shares eye-opening details about his knee injury
Jets QB Aaron Rodgers insists focus has been football, not politics
Hurricanes general manager steps down, leaving front office in flux
Travis Kelce echoes Patrick Mahomes in response to controversial kicker
Cowboys QB Trey Lance details how he has changed since 49ers stint
Historic NCAA settlement reached allowing schools to pay players
Celtics dominate Pacers in Game 2, take 2-0 ECF lead
Cavaliers fire head coach J.B. Bickerstaff
Connor McDavid's 2OT goal gives Oilers win over Stars in Game 1
Rob Manfred hints at big change coming to MLB
Scottie Scheffler arrest case takes another weird turn with new video
QB Russell Wilson believes Steelers can 'do something special'
Pacers star suffers injury in ugly Game 2 loss
Watch: Jaylen Brown's big second quarter lifts Celtics to halftime lead
Broncos HC Sean Payton raves about one QB's progress at OTAs