SAN FRANCISCO – The Cincinnati Reds dropped two of three games to the San Francisco Giants at Oracle Park from Aug. 24-26, but the series finale produced one of the wildest comebacks of the season.

San Francisco won the first two games, 5-0 and 3-1, before Cincinnati erased a 9-3 deficit in the ninth inning Wednesday to win 10-9.

The Giants opened the series with a 5-0 shutout Monday. San Francisco scored four times in the first inning against Reds starter Chase Burns, who allowed five earned runs in 3.2 innings and took the loss.

Giants starter Carson Whisenhunt struck out five before leaving in the third inning with an elbow injury. San Francisco’s bullpen finished the shutout.

The Giants followed with a 3-1 victory Tuesday to clinch the series. Drew Cavanaugh gave San Francisco an early lead with a two-run single in the first inning before Rafael Devers launched a solo home run into McCovey Cove in the fifth for his 28th homer of the season.

Anthony Molina provided 4.1 scoreless innings in relief after Giants starter Adrian Houser left with an arm injury. Sal Stewart’s ninth-inning solo homer ended a 23-inning scoreless stretch for Cincinnati, but the Reds could not complete the comeback.

Wednesday’s finale was a different story.

The Giants appeared to have the game under control with a 9-3 lead entering the ninth. Jonah Cox, Devers and Shay Whitcomb each homered for San Francisco, while Drew Gilbert added a three-run double.

Then the Reds erupted.

Eugenio Suárez started the comeback with a grand slam off Dylan Smith. Cincinnati followed with consecutive bunt singles before Jose Trevino’s sacrifice fly made it 9-8.

Tyler Stephenson then delivered the go-ahead RBI single as the Reds completed a seven-run ninth inning and stunned San Francisco.

The comeback marked the largest ninth-inning blown lead in Giants franchise history. San Francisco had previously been 2,208-0 when leading by at least six runs entering the final inning.

Even with the late-game heroics, Cincinnati finished the road trip with a series defeat and now prepares for a showdown in Chicago against the Cubs.