The San Francisco Giants were on the verge of their 27th loss of the season.
But second baseman Joe Panik had other ideas Tuesday night.
With runners on second and third base and two outs in the bottom of the ninth inning, Panik roped a single to right field. Kevin Pillar scored from third, and pinch-runner Mac Williamson beat the throw from Braves right fielder Nick Markakis, giving the Giants a dramatic 4-3 win.
What little crowd remained at Oracle Park on a damp evening went crazy.
It was Panik's third career walk-off hit.
The Giants now are 21-26 on the season.