SAN FRANCISCO (AP) Ketel Marte homered, doubled twice and singled as the Arizona Diamondbacks beat the San Francisco Giants 6-5 on Friday night to snap a five-game losing streak.

Marte went deep in the first inning off Giants lefty Tyler Anderson. The Diamondbacks escaped a late jam and ended an eight-game losing streak on the road.

''I just try to put good swings on the ball and try to make things happen,'' Marte said. ''What can I say? I feel healthy and strong. Everyone knows the kind of player I am.''

Nick Ahmed had three hits for the Diamondbacks and rookie catcher Daulton Varsho drove in two runs.

Arizona took a 6-3 lead in the fifth. Down by a run in the eighth, the Giants loaded the bases with no outs.

Alex Dickerson flied out to shallow right and Mauricio Dubon wandered too far off second base and was doubled off to squelch the rally.

''My mistake was I ran with my head down,'' Dubon said. ''That can't happen. An inning like that, and how we've been swinging the bats, I just have to run with my head up.''

Kevin Ginkel closed in the ninth for his first save.

San Francisco, playing the opener of a six-game homestand and competing for a playoff spot, went just 2 for 12 with runners in scoring position.

Travis Bergen (1-0), who pitched out of trouble in the fourth after relieving Arizona starter Taylor Clarke, was credited with the victory.

Six Diamondbacks relievers combined to throw six innings and hold the Giants to two runs.

''The bullpen giving up two runs over six innings was one of the big reasons we won the game,'' Arizona manager Torey Lovullo said. ''We (also) banged the baseball around today, and that was nice to see.''

Anderson (1-3) was charged with four runs over four innings.

Giants first baseman Brandon Belt continued his torrid streak at the plate. He homered and doubled and is now hitting .500 (26 for 52) over his past 16 games.

MADBUM RETURNS

Madison Bumgarner, the 2014 World Series MVP with the Giants, can't help but reflect a bit as he returns to Oracle Park to face his former team for the first time Saturday night.

''Just like anything else, I spent the last 10 years here so you don't just forget about it. You think about it,'' Bumgarner said. ''If I see the guys playing, watching different ballgames, or when we're playing the Giants, you can't help but reminisce a little bit.''

When Arizona visited the Bay Area last month, Bumgarner remained in Phoenix rehabbing a mid-back strain. He will come off the injured list to make his first appearance since Aug. 9.

TRAINER'S ROOM

Diamondbacks: Left-hander Caleb Smith (COVID-19), acquired from the Miami Marlins at the trade deadline, is scheduled to throw Saturday in an alternate training site game at Chase Field.

Giants: LHP Drew Smyly (sprained left index finger) and RHP Jeff Samardzija (inflammation in pitching shoulder) are set to throw three innings each in simulated games Saturday ... OF Austin Slater is close to returning as he continues to at the club's Sacramento alternate site while recovering from a strained left groin and a flexor strain in his right elbow.

UP NEXT

Bumgarner (0-3, 9.35 ERA) will come off the injured list to make his first appearance against his former club. Trevor Cahill (0-0, 2.51 ERA) will face the D-backs for his third straight start. He has pitched five or more innings just once in his initial four starts.

---

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports

---

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports

Copyright 2024 STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.