PHOENIX -- Mike Yastrzemski never experienced a night like Friday. Not in his months in the major leagues, not in the minor leagues and not in Little League.
"Not even in video games," the 28-year-old Yastrzemski said.
For only the second time in major league history, teams combined to hit 12 home runs in a game. The Giants and Diamondbacks were one short of the record 13 homers hit by Arizona and Philadelphia on June 10 at Citizens Bank Park. It was a Chase Field record for the Diamondbacks, who hit five of their six on Friday after the seventh inning.
Yastrzemski also hit a solo homer in the third, and had a two-run blast in the seventh inning. His three-homer game was accomplished in 70 big league games. His Hall of Fame grandfather, Carl Yastrzemski, had one three-homer outing in 3,308 career games for the Boston Red Sox. The elder Yastrzemski hit three homers in a game against the Detroit Tigers at Tiger Stadium on May 19, 1974.
"Just don't let a good pitch to hit go by," Yastrzemski said of his thought process. "Didn't matter whether it's a fastball, slider, change-up, if it was a good pitch I wasn't going to let it hit the glove."
Kevin Pillar homered twice, with his second long ball giving the Giants a 9-7 lead in the 10th inning.
Brandon Belt also homered for the Giants, who have won five of six.
Yoan Lopez (1-5) took the loss after giving up Yastrzemski's home run to lead off the 11th.
The Diamondbacks lost their third straight and fell below .500 at 61-62. The Giants, 2½ games out of the second wild-card spot in the National League, have taken the first two games of the four-game set.
"It just shows how gritty this team is," Yastrzemski said. "Guys want to win and they want to be here and they want to play, and that's what makes it so fun to be part of a team like this."
Jones' first homer in more than two months tied the score at 7 in the eighth inning, as the Diamondbacks battled back from a 7-2 deficit. Jones hit a three-run shot as a pinch hitter with two outs.
"We slugged it out and ran out of outs," Diamondbacks manager Torey Lovullo said. "You feel like it was one of those games you want to keep playing the rest of the night until you come out of the right side of it."
Arizona got the tying run on base when Marte singled to start the bottom of the 11th. But Smith struck out David Peralta and got Escobar to pop out before Gott entered and closed out the game.
Giants starter Jeff Samardzija gave up two runs and five hits in 5⅓ innings.
"A little home run derby going on tonight," Giants manager Bruce Bochy said. "But I'll say this, for those guys in there to win that ball game, a couple of leads there we let get away ... relievers have a tough day, but we picked them up."
The Diamondbacks took a 1-0 lead when Marte homered to open the bottom of the first. It was Marte's 25th of the season and third leadoff homer of the season and his career.
Leake gave up four runs and eight hits in six innings.
Giants: RHP Johnny Cueto is scheduled for another start with Class A San Jose next week, as he moves closer to a possible return from Tommy John surgery.
Diamondbacks: Peralta banged his left (throwing) hand making a difficult catch in foul territory against the left-field fence to end the top of the third inning but stayed in the game.
Giants: Top prospect Logan Webb is set for his major league debut Saturday against Arizona. Webb, 22, has pitched at the rookie, Class A, Double-A and Triple-A levels this season. He was suspended for 80 games earlier this year for testing positive for a performance-enhancing drug.
Diamondbacks: RHP Taylor Clarke was named Saturday's starter before Friday's game, in place of Merrill Kelly, who was moved to Sunday. Clarke is to be officially called up from Triple-A Reno, and is 4-3 with a 5.46 ERA in 13 starts with the Diamondbacks this season.
Narvaez's 10th inning HR lifts Mariners over Sox 2-1
Omar Narvaez hit a game-ending home run in the 10th inning against his former team, Felix Hernandez turned in his best outing of the season and the Seattle Mariners beat the Chicago White Sox 2-1 on Saturday night.
D'Arnaud's 3-run double sends streaking Rays past Angels 3-1
Travis d'Arnaud broke open a scoreless game with a three-run double in the sixth inning, and the Tampa Bay Rays improved their standing in the AL wild card race with their 13th win in 16 games, 3-1 over the Los Angeles Angels on Saturday night.
Rojas gets clutch hit as Marlins snap 5-game skid
Miguel Rojas doubled in the go-ahead run in the top of the eighth inning, Jorge Alfaro hit a massive home run off Madison Bumgarner, and rookie Robert Dugger pitched 6 1/3 solid innings as the Miami Marlins beat the San Francisco Giants 4-2 on...
Four home runs carry Athletics to 8-6 win over Rangers
Mark Canha's two-run home run off the left-field foul pole broke a fifth-inning tie as the Oakland Athletics beat the Texas Rangers 8-6 on Saturday night.
Blackmon homers in 6-run inning, Rockies beat Padres 11-10
Charlie Blackmon homered to start a six-run inning, Daniel Murphy had four hits and 4 RBI, and the Colorado Rockies hung on to beat San Diego 11-10 Saturday night in a game in which both the Padres' Eric Hosmer and manager Andy Green were ejected.
Greinke finally gets win over old club, Astros top Royals
Zack Greinke finally beat his old club and Yordan Alvarez belted a pinch-hit three-run homer as the Houston Astros beat the Kansas City Royals 6-1 on Saturday night.