(AP) Pinch-hitter Hector Sanchez hit a three-run homer with two outs in the ninth inning, helping the San Francisco Giants beat the Washington Nationals 4-3 on Thursday.
Down to his last strike, Sanchez connected off Nationals closer Rafael Soriano (2-3) on a full-count pitch. The drive landed just inside the right field foul pole in the second deck.
Sergio Romo worked a scoreless bottom half for his 29th save. Javier Lopez (2-2) pitched 1 2-3 scoreless innings of relief to earn the win.
The loss snapped Washington's five-game winning streak and spoiled Dan Haren's six-inning, one-run effort.
Ian Desmond doubled home two runs and Jayson Werth added two hits for the Nationals.
Brandon Belt homered for the Giants and extended his hitting streak to 10 games. Ryan Vogelsong allowed three runs in the third inning, all with two outs. San Francisco snapped a three-game losing streak.
Since coming off the 15-day disabled list on July 8, Haren has a 3.20 ERA in seven starts.
Vogelsong labored during a 39-pitch third inning. Desmond's double into the gap in left-center drove home both Denard Span and Werth.
Adam LaRoche then followed with an RBI single to score Desmond and put the Nationals up 3-0.
In the seventh inning, LaRoche's line drive struck Giants reliever Sandy Rosario in the chest. Rosario immediately left the game and was replaced by Lopez.
San Francisco's struggling offense did little against Haren, who during one stretch allowed just two runners to reach base out of 14 batters. One of those runners came via error and was erased by a double play.
Belt snapped that stretch with a solo home run in the sixth inning to cut the deficit to 3-1. But Haren escaped the inning without further damage. He threw 98 pitches and gave up just one run on three hits with two walks and three strikeouts.
Buster Posey led off the ninth with a single against Soriano and Roger Kieschnick drew a two-out walk. That set the stage for Sanchez, who was pinch hitting for Lopez.
NOTES: Giants manager Bruce Bochy said CF Angel Pagan (hamstring), on the DL since May 28, would begin a rehab assignment Friday with San Francisco's rookie affiliate in Arizona. He is expected to play three innings. . Washington agreed to terms Thursday with international free agent 3B Anderson Franco, 16, of the Dominican Republic. . The Nationals recalled RHP Drew Storen from Triple-A Syracuse and optioned RHP Ryan Mattheus to Syracuse. .Nationals C Wilson Ramos (strained hamstring) missed his second straight game. Washington manager Davey Johnson said Ramos will return to the lineup Friday in Atlanta. . The Nats begin a three-game series with the NL East-leading Braves. RHP Taylor Jordan (1-3, 4.14) opposes LHP Alex Wood (2-2, 2.78). . The Giants continue their six-game road trip on Friday in Miami. RHP Chad Gaudin (5-2, 2.42) faces Nathan Evoldi (2-2, 2.82).