Eugenio Velez hit a two-out, two-run triple in the ninth inning and the San Francisco Giants rallied to beat the Arizona Diamondbacks 4-3 on Wednesday to complete a three-game sweep.

Bengie Molina started the comeback with a one-out single off Arizona reliever Brandon Lyon. Pinch-runner Ryan Rohlinger moved to second when Aaron Rowand walked with two outs before Velez hit an 0-2 pitch to the gap in right-center to drive in Rohlinger and Rowand.

It was the second straight game-winning hit for Velez, who also had an RBI single in the ninth inning of Tuesday's 5-4 win over Arizona.

Alex Hinshaw (2-1) got one out for the win after closer Brian Wilson blew his fifth save of the year. Wilson, second in the NL with 37 saves, gave up Chris Young's two-out, two-run triple in the top of the ninth and stood to take the loss before his teammates rallied off Lyon (2-5).

San Francisco matched its season-high win streak of five straight while Arizona lost its sixth straight overall and 10th consecutive on the road to fall three games behind the Los Angeles Dodgers in the NL West. Los Angeles plays at San Diego later Wednesday.

The Diamondbacks have not won on the road since beating Houston 11-5 on Aug. 16.

Velez also drove in San Francisco's first two runs when he hit a bases-loaded double off Arizona starter Dan Haren in the third inning.

That looked like it would be sufficient against the slumping Diamondbacks, who managed only one run and four hits off Giants starter Brad Hennessey.

Young's two-run triple off Wilson prevented Hennessey from claiming his first win in more than two years but wasn't enough to keep San Francisco from sweeping the Diamondbacks at AT&T Park for the first time since April 20-22, 2007.

Hennessey, who was taking Kevin Correia's turn in the Giants' rotation, made his first start since Sept. 15, 2006. The righty spent the better part of two years in the bullpen but pitched well in a series of starts in the minors, convincing San Francisco manager Bruce Bochy to use him against the Diamondbacks.

The plan worked better than expected until Arizona rallied against Wilson.

Hennessey pitched six strong innings, giving up four hits including a solo home run to Stephen Drew in the third, and pitched out of jams in the first and fourth. He retired nine of the final 11 batters he faced before giving way to reliever Jack Taschner to start the seventh.

That seemed to be enough against Arizona, which hadn't shown much life the past two weeks while tumbling out of first place in the NL West.

Drew homered off Hennessey in the third but the Diamondbacks couldn't get much else off the Giants' starter, who left with a 2-1 lead after Velez's bases-loaded double in the third.

Haren lasted only four innings to run his winless streak to four straight starts.

Copyright 2008 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.