D. Ross Cameron-USA TODAY Sports
D. Ross Cameron-USA TODAY Sports

Wilmer Flores lined a two-out, two-run home run in the bottom of the ninth inning Sunday afternoon as the San Francisco Giants, after blowing a late three-run lead, completed a three-game sweep over the visiting Philadelphia Phillies with a 5-3 victory.

With their eighth walk-off win this season, the Giants kept their flickering hopes alive in the National League wild-card race, moving within eight games of the Phillies for the last playoff spot.

Flores' heroics came after the Phillies' J.T. Realmuto had belted a three-run, game-tying homer in the eighth, erasing all of a 3-0 deficit.

Camilo Doval (5-6) pitched a scoreless top of the ninth, setting the stage for Flores' 17th homer of the season. It came two batters after Bryce Johnson drew a leadoff walk from the Phillies' fifth pitcher, David Robertson (3-2).

The loss was the Phillies' fifth on a six-game Western swing. The walk-off defeat was their fifth of the year.

Realmuto's homer came after Giants starter Carlos Rodon was pulled after throwing 106 pitches in six shutout innings. He held the Phillies to five hits over that stretch, with two walks and 10 strikeouts.

After Alex Young threw a 1-2-3 seventh with two strikeouts to retain a 3-0 lead, the Phillies drew even against John Brebbia. Alec Bohm and Bryce Harper stroked one-out singles and Realmuto hit his 15th homer of the season.

Before the ninth, the Giants had done all of their scoring in the fourth inning against Phillies starter Ranger Suarez. LaMonte Wade Jr., Austin Wynns and Johnson each drove in a run with a single.

Suarez was done after completing the inning, charged with three runs on four hits. He walked two and struck out four.

Flores and Wade had two hits apiece for the Giants, who now kick off an eight-game trip with three against the Los Angeles Dodgers, beginning Monday night.

Bohm had three singles for the Phillies, who begin a six-game homestand against Miami and Washington with a matchup against the Marlins on Tuesday.

More must-reads:

TODAY'S BEST
Ant-Man leads Timberwolves to Game 1 upset of Nuggets
Luis Arraez makes history in Padres debut
Corey Heim dominates Truck Series race at Kansas Speedway while tempers flare on pit road
Lionel Messi sets MLS record with monster game
Watch: Anthony Edwards does it all for Minnesota
Watch: 150th Kentucky Derby ends in three-horse photo finish
Clippers could see nine-time All-Star jump ship this summer
Phillies get rough injury news on Trea Turner
Watch: Yankees star Aaron Judge receives first career ejection after arguing called third strike
Mavericks lose key player for 'significant period of time'
Blue Jays manager John Schneider blasts team after latest loss
Lakers make another big change after firing Darvin Ham
Draymond Green doubles down on Knicks' inability to win a championship
Phillies lose two-time All-Star to injured list
NBA announces punishment for Lakers star over actions in elimination game
Heat may be cooling on Jimmy Butler's long-term future
NFL insider defends former Steelers QB Kenny Pickett from 'bust' label
Nuggets may miss this player as postseason run continues
Report: Russell Westbrook situation 'far more challenging' than previously thought
Kansas City Chiefs release former second-round pick at WR

Want more sports news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.