for the closer role with Armando Benítez in 2007 spring training. After he struggled and posted a 7.71 ERA, the Giants optioned him to the minors to start the season. After building a 1–2 record, 2.10 ERA, 37 strikeouts, 24 walks, 11 saves, and innings pitched in 31 games with Fresno, Wilson was called up on August 11 when Jonathan Sánchez was demoted. He was initially used as the setup man for closer Brad Hennessey, but he took over as closer on September 11 when Hennessey lost the role due to ineffectiveness. He went on to pitch in 24 games, recording a 1–2 record, a 2.28 ERA, 18 strikeouts, six walks, innings pitched, and six saves. 2008 season Wilson remained the Giants' closer in 2008 and kept the role all season. He recorded 24 consecutive saves from May 3 through August 17, the longest streak by a Giant since Robb Nen had 28 straight in 2000. Wilson was named to the All-Star Game after leading the NL in saves with 25 in the first half of the season. He gave up no hits and struck out one in innings in a 4–3 loss to the American League. He continued to lead the league in saves until José Valverde passed him at the end of August. Despite posting a 4.04 ERA through September 6, Wilson converted 37 of 40 save opportunities. In his final seven games of the year, however, he posted a 9.56 ERA while converting just four out of seven opportunities. In 63 games, he had a 3–2 record, a 4.62 ERA, 67 strikeouts, and 28 walks in innings pitched. He converted 41 saves in 47 attempts; his 41 saves were tied with Brad Lidge's total for second in the league behind Valverde's 44. 2009 season On June 5, 2009, Wilson saved Randy Johnson's 300th win. Johnson, searching for his 300th win, gave up one unearned run in six innings in Game 1 of a doubleheader against the Washington Nationals; the Giants had a 2–1 lead in the eighth inning. With runners on first and second for the Nationals and two outs, Wilson was called on to get the save. He walked Ryan Zimmerman to load the bases and bring up Adam Dunn. He then loaded the count against Dunn before throwing a called strike three to end the inning. Wilson then pitched a scoreless ninth, preserving the victory