Randy Winn hit a tying, two-out triple off Trevor Hoffman in the ninth inning, and J.T. Snow hit a go-ahead single two batters later as the San Francisco Giants stunned San Diego 3-2 on Monday night and pulled within three games of the NL West-leading Padres.
The Padres had been within one out of reducing their magic number for clinching the division title to two but Hoffman blew a save for the third time in 44 chances, and saw his streak of 38 straight saves end.
Their magic number remains four, with six games to play.
This is the closest the Giants have been since May 14, when they were three games behind Arizona and the Los Angeles Dodgers.
The Padres fell to 77-79, the latest in a season a team has led a division with a losing record.
ROCKIES 6, BRAVES 5: At Atlanta, Todd Greene hit a three-run homer in the eighth inning and the Colorado Rockies rallied, preventing the Braves from clinching at least a tie for their 14th straight division title. Colorado came all the way back from a four-run deficit, taking advantage of the Braves' shaky bullpen
METS 6, PHILLIES 5: At Philadelphia, bad defense and a shaky bullpen cost the Phillies a crucial game when the New York Mets rallied for four runs in the eighth inning. Pat Burrell came to the plate with two runners on in the ninth but bounced back to the mound on a check-swing for the final out, dropping the Phillies 1 1/2 games behind Houston in the NL wild-card race.
NATIONALS 4, MARLINS 0: At Miami, Cristian Guzman had three hits and three RBIs, Hector Carrasco pitched six strong innings and Washington put Florida on the brink of playoff elimination. Florida has dropped four straight and 10 of 12. Another loss, or a Houston victory, will knock the Marlins out of NL wild-card contention.
BREWERS 12, REDS 9: At Milwaukee, Carlos Lee drove in two runs to match his career high with 113 RBIs, and Milwaukee beat Cincinnati in a wild game. After Cincinnati scored twice in the eighth inning for a 9-7 lead, Milwaukee rallied for five runs in the bottom half to reach 78 victories for the first time since 1997. The Brewers (78-78) are seeking their first winning season since 1992.