Stephen Piscotty hit a tying grand slam in the ninth inning, Mark Canha's sacrifice fly put Oakland on top in the 10th, and the Athletics stunned the San Francisco Giants 8-7 on Friday night in the opener of the Bay Bridge Series.

Oakland trailed by five in the ninth inning but rallied to win from such a deficit for the first time since July 15, 1952, according to STATS. The Giants hadn't lost after leading by five or more runs in the ninth inning or latter since June 25, 1929.

More Images
San Francisco Giants Evan Longoria (10) celebrates with Wilmer Flores after hitting a home run off Oakland Athletics' Jesus Luzardo in the first inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Stephen Piscotty hit a tying grand slam in the ninth inning, Mark Canha's sacrifice fly put Oakland on top in the 10th, and the Athletics stunned the San Francisco Giants 8-7 on Friday night in the opener of the Bay Bridge Series.

Oakland Athletics pitcher Jesus Luzardo works against the San Francisco Giants in the first inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Joakim Soria (2-0) escaped trouble in the ninth for the win, and Liam Hendriks finished for his sixth save.

San Francisco Giants' Hunter Pence runs the bases after hitting a three run home run off Oakland Athletics' Jesus Luzardo in the third inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Until Piscotty's mighty swing, the Giants were beating the slugging A's at their own power game.

Oracle Park stadium workers, including concessions servers, cooks, and VIP suite attendants represented by UNITE HERE Local 2 protest outside of Oracle Park prior to the baseball game between the Oakland Athletics and the San Francisco Giants on Friday, Aug. 14, 2020, in San Francisco. Unemployed concessions workers protested what they perceive as the team's refusal to negotiate about supporting workers during COVID-19. (AP PhotoBen Margot)

Longoria's two-run single in the fourth chased Luzardo. He still had plenty of rest having earned his first career victory last Sunday against the Astros.

Oakland Athletics pitcher Jesus Luzardo, center, is removed from the baseball game against the San Francisco Giants by manager Bob Melvin (6) in the fourth inning Friday, Aug. 14, 2020, in San Francisco. At left is A's catcher Sean Murphy. (AP PhotoBen Margot)

Oakland improved to 1-2 in interleague play and started a stretch with seven straight games against the National League West.

Oakland Athletics' Stephen Piscotty (25) celebrates after hitting a grand slam off San Francisco Giants' Trevor Gott in the ninth inning of a baseball game, Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Giants mascot Lou Seal spent much of the game paddling in a kayak on McCovey Cove alongside bay regular McCovey Cove Dave.

Oakland Athletics' Stephen Piscotty, left, celebrates at the end of a baseball game against the San Francisco Giants Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Major League Baseball said a settlement had been reached. He will be eligible to play again Tuesday against the Diamondbacks.

Matt Chapman began on second base with the new extra-innings rule and advanced on Matt Olson's groundout to bring up Canha. He hit a flyball to right off Jarlin García (0-1).

San Francisco Giants Evan Longoria (10) celebrates with Wilmer Flores after hitting a home run off Oakland Athletics' Jesus Luzardo in the first inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

San Francisco Giants Evan Longoria (10) celebrates with Wilmer Flores after hitting a home run off Oakland Athletics' Jesus Luzardo in the first inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Joakim Soria (2-0) escaped trouble in the ninth for the win, and Liam Hendriks finished for his sixth save.

The A's delivered another dramatic late-game grand slam. Olson hit one to beat the Angels in 10 innings on opening night. Piscotty had another in walkoff fashion in a win over the Rangers earlier this month.

“The magnitude of them, too, two walkoffs and one that ties the game on the road in the ninth,” manager Bob Melvin said. “Can’t explain it. You just try to get the pitcher on the defensive.”

Oakland Athletics pitcher Jesus Luzardo works against the San Francisco Giants in the first inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Oakland Athletics pitcher Jesus Luzardo works against the San Francisco Giants in the first inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Until Piscotty's mighty swing, the Giants were beating the slugging A's at their own power game.

Hunter Pence hit a three-run homer, and Evan Longoria and Mike Yastrzemski also connected to back Johnny Cueto. The right-hander struck out five over seven strong innings, allowing two runs, three hits and two walks but had nothing to show for it.

Longoria homered in the first against late fill-in Jesús Luzardo, moved up a day after A’s opening day starter Frankie Montas was scratched because of tightness in his upper back and neck. Montas plans to throw on the side Saturday and could start Sunday.

San Francisco Giants' Hunter Pence runs the bases after hitting a three run home run off Oakland Athletics' Jesus Luzardo in the third inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

San Francisco Giants' Hunter Pence runs the bases after hitting a three run home run off Oakland Athletics' Jesus Luzardo in the third inning of a baseball game Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Longoria's two-run single in the fourth chased Luzardo. He still had plenty of rest having earned his first career victory last Sunday against the Astros.

The ball carried on a rare hot evening in San Francisco, where first-pitch temperature reached 85 degrees.

Robbie Grossman hit an RBI triple in the A's two-run seventh.

Oracle Park stadium workers, including concessions servers, cooks, and VIP suite attendants represented by UNITE HERE Local 2 protest outside of Oracle Park prior to the baseball game between the Oakland Athletics and the San Francisco Giants on Friday, Aug. 14, 2020, in San Francisco. Unemployed concessions workers protested what they perceive as the team's refusal to negotiate about supporting workers during COVID-19. (AP PhotoBen Margot)

Oracle Park stadium workers, including concessions servers, cooks, and VIP suite attendants represented by UNITE HERE Local 2 protest outside of Oracle Park prior to the baseball game between the Oakland Athletics and the San Francisco Giants on Friday, Aug. 14, 2020, in San Francisco. Unemployed concessions workers protested what they perceive as the team's refusal to negotiate about supporting workers during COVID-19. (AP PhotoBen Margot)

Oakland improved to 1-2 in interleague play and started a stretch with seven straight games against the National League West.

After playing 14 of their initial 20 games on the road the Giants are back home for 11 of 13 at home. Still, they squandered leads of 5-0 and 6-2.

COOLING OFF

Oakland Athletics pitcher Jesus Luzardo, center, is removed from the baseball game against the San Francisco Giants by manager Bob Melvin (6) in the fourth inning Friday, Aug. 14, 2020, in San Francisco. At left is A's catcher Sean Murphy. (AP PhotoBen Margot)

Oakland Athletics pitcher Jesus Luzardo, center, is removed from the baseball game against the San Francisco Giants by manager Bob Melvin (6) in the fourth inning Friday, Aug. 14, 2020, in San Francisco. At left is A's catcher Sean Murphy. (AP PhotoBen Margot)

Giants mascot Lou Seal spent much of the game paddling in a kayak on McCovey Cove alongside bay regular McCovey Cove Dave.

LAUREANO SUSPENSION

A's center fielder Ramon Laureano sat out after he had a six-game suspension reduced to four games Friday following an appeal of the penalty for his role in a benches-clearing incident with the rival Houston Astros last Sunday.

Oakland Athletics' Stephen Piscotty (25) celebrates after hitting a grand slam off San Francisco Giants' Trevor Gott in the ninth inning of a baseball game, Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Oakland Athletics' Stephen Piscotty (25) celebrates after hitting a grand slam off San Francisco Giants' Trevor Gott in the ninth inning of a baseball game, Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Major League Baseball said a settlement had been reached. He will be eligible to play again Tuesday against the Diamondbacks.

Astros hitting coach Álex Cintrón received a 20-game suspension and a fine Tuesday for his role in the fracas at Oakland.

Canha made a great catch running hard into the wall and went 1 for 3 with a strikeout and walk while filling in for Laureano as he did for a stretch last season when the center field was hurt.

Oakland Athletics' Stephen Piscotty, left, celebrates at the end of a baseball game against the San Francisco Giants Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

Oakland Athletics' Stephen Piscotty, left, celebrates at the end of a baseball game against the San Francisco Giants Friday, Aug. 14, 2020, in San Francisco. (AP PhotoBen Margot)

TRAINER'S ROOM

Athletics: Montas woke up with the stiffness in his back and lower neck. “I hope he pitches in the series,” Melvin said. ... RHP Jordan Weems was reinstated from the 10-day injured list after missing time with a strained lat muscle on his pitching side and was optioned to the club's alternate site in San Jose.

Giants: LHP Drew Smyly (sprained left index finger) has begun throwing on flat ground and is scheduled to be re-examined this weekend. RHP Jeff Samardzija also is set to be re-evaluated as he is sidelined with inflammation in his throwing shoulder. He is yet to resume throwing. ... RHP Sam Coonrod (right lat strain) threw a 30-pitch bullpen and will be examined by team doctors during the weekend. ... OF Austin Slater missed his second straight game with a strained right elbow and is day to day. He could be used as designated hitter in the coming days.

ROSTER MOVE

The Giants added RHP Jake Jewell to their player pool and assigned him to their Sacramento alternate site.

UP NEXT

RHP Kevin Gausman (0-1, 4.05 ERA) pitches Saturday for the Giants, and left-hander Sean Manaea (0-2, 9.00) will start a day earlier than scheduled for Oakland.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sport