SAN FRANCISCO — In a postseason full of twists and turns, the San Francisco Giants are headed back to the World Series after a big comeback against the defending champs.

Hunter Pence got the Giants going with a weird double, Matt Cain pitched his second clincher of October and San Francisco closed out Game 7 of the NL championship series in a driving rainstorm, routing the St. Louis Cardinals 9-0 Monday night.

San Francisco won its record-tying sixth elimination game of the postseason, completing a lopsided rally from a 3-1 deficit.

The Giants, who won it all in 2010, will host Justin Verlander, Miguel Cabrera and the Detroit Tigers in Game 1 on Wednesday night.

Verlander is set to pitch Wednesday's opener. Giants manager Bruce Bochy insisted before Monday's game he had not planned any further in advance.

Series MVP Marco Scutaro produced his sixth multihit game of the series and matched an LCS record with 14 hits and Pablo Sandoval drove in a run for his fifth straight game.

After falling behind 3-1 in the series at Busch Stadium, the Giants outscored the wild-card Cardinals 20-1 over the final three games behind stellar starting pitching from Barry Zito, Ryan Vogelsong and Cain.

They also benefited from some strange bounces.

On Pence's double that highlighted a five-run third, his bat broke at the label on impact, then the broken barrel hit the ball twice more. That put a rolling, slicing spin on the ball and caused it to change directions – leaving shortstop Pete Kozma little chance to make the play. Kozma broke to his right, figuring that's where the ball would go, but it instead curved to left-center.

Loading Slideshow...
  • San Francisco Giants' Marco Scutaro reacts after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Mark Humphrey)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Mark Humphrey)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Mark Humphrey)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Mark Humphrey)

  • San Francisco Giants relief pitcher Sergio Romo reacts after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Ben Margot)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Sergio Romo and catcher Buster Posey react after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Sergio Romo reacts after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Sergio Romo and catcher Buster Posey react after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Sergio Romo reacts after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • A grounds keeper and umpire look over the wet field during the ninth inning of Game 7 of baseball's National League championship series between the San Francisco Giants and the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals' Carlos Beltran bats in the rain during the ninth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals' Yadier Molina and Daniel Descalso watch from the dugout during the ninth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants fans cheer during the eighth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals starting pitcher Kyle Lohse sits on the bench during the eighth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Brandon Belt hits a home run during the eighth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals relief pitcher Jason Motte throws during the eighth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants catcher Buster Posey heads back to the dugout as St. Louis Cardinals' Tony Cruz (48) reacts after striking out during the eighth inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Angel Pagan is tagged out at home by St. Louis Cardinals catcher Yadier Molina during the seventh inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals catcher Yadier Molina and David Freese sit in the dugout during the seventh inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Santiago Casilla throws during the eighth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals' Pete Kozma can't handle a ball hit by San Francisco Giants' Pablo Sandoval during the seventh inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Angel Pagan is tagged out at home by St. Louis Cardinals catcher Yadier Molina during the seventh inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals' Skip Schumaker sits on the bench during the sixth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals relief pitcher Mitchell Boggs throws during the seventh inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants relief pitcher Jeremy Affeldt throws during the sixth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals' Matt Holliday catches a ball hit by San Francisco Giants' Marco Scutaro during the sixth inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals' Skip Schumaker sits on the bench during the sixth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants manager Bruce Bochy takes starter Matt Cain out of the game during the sixth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants starting pitcher Matt Cain throws during the sixth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals starting pitcher Kyle Lohse sits on the bench during the sixth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals relief pitcher Edward Mujica throws during the fourth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals relief pitcher Trevor Rosenthal throws during the fifth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants' Hunter Pence catches a ball at the warning track off the bat of St. Louis Cardinals' Carlos Beltran during the fifth inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals starting pitcher Kyle Lohse sits on the bench during the fourth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • A San Francisco Giants fan cheers during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals starting pitcher Kyle Lohse is taken out of the game during the third inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Eric Risberg)

  • San Francisco Giants' Pablo Sandoval reacts after scoring during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants' Brandon Crawford (35) breaks up a double play with St. Louis Cardinals' Daniel Descalso covering during the third inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Eric Risberg)

  • St. Louis Cardinals starting pitcher Kyle Lohse reacts during the third inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Marco Scutaro reacts as Buster Posey (28) scores during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals' Pete Kozma tries to throw over umpire Bill Miller during the third inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. Hunter Pence was safe at home. (AP Photo/Mark Humphrey)

  • San Francisco Giants' Hunter Pence hits a three-run double during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • San Francisco Giants' Hunter Pence hits a three-run double during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Hunter Pence is congratulated after scoring in the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Hunter Pence hits a three-run double during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants' Buster Posey scores past St. Louis Cardinals catcher Yadier Molina during the third inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. Posey scored from first on a double by Hunter Pence. (AP Photo/David J. Phillip)

  • St. Louis Cardinals relief pitcher Joe Kelly warms up during the third inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants' Pablo Sandoval hits a double during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Gregor Blanco reacts after making a catch on a ball hit by St. Louis Cardinals' Allen Craig during the third inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)