Madison Bumgarner pitched a four-hitter with 10 strikeouts and Brandon Crawford hit the first grand slam by a shortstop in postseason history as the San Francisco Giants routed the Pittsburgh Pirates 8-0 on Wednesday night in the National League wild-card game.

San Francisco will face NL East champion Washington in the NL Division Series on Friday.

Crawford's shot over the right-field wall in the fourth inning off Edinson Volquez put the Giants ahead. Bumgarner did the rest as San Francisco won its eighth consecutive postseason game and seventh in a row when facing elimination.

The San Francisco Giants know what it takes to win this time of year. The Pittsburgh Pirates are still learning.

Madison Bumgarner and Brandon Crawford provided a powerful lesson on the difference in the National League wild-card game.

Bumgarner pitched a four-hitter with 10 strikeouts and Crawford hit the first grand slam by a shortstop in postseason history as the Giants routed the Pirates 8-0 on Wednesday night.

After silencing a black-clad crowd hoping for another Pittsburgh playoff run, San Francisco will face NL East champion Washington in the Division Series beginning Friday.

Crawford's shot over the right-field wall in the fourth inning off Edinson Volquez put the Giants ahead. Bumgarner did the rest as San Francisco won its eighth consecutive postseason game and seventh in a row when facing elimination.

Overpowering one of the NL's best lineups, Bumgarner walked one and threw 79 of 109 pitches for strikes in his latest stellar postseason performance. The big left-hander, who allowed only four singles, has thrown 15 scoreless innings in two World Series starts.

Volquez was trying to cap his remarkable comeback season by sending Pittsburgh to the NLDS for the second straight year, but he couldn't match Bumgarner.

The right-hander cruised until the fourth, when a pair of singles and a walk loaded the bases with no outs. Crawford followed with a drive that kept carrying all the way to the seats above the 21-foot high Roberto Clemente wall to silence the largest crowd in the 13-year history of PNC Park.

That was more than enough for Bumgarner, who mixed his fastball with a slider the Pirates couldn't seem to figure out. Pittsburgh, which was fourth in the majors in extra-base hits this season, rarely hit the ball hard.

The defense behind Bumgarner had its sloppy moments -- including two errors and a pair of near collisions when right fielder Hunter Pence wouldn't clear the way for a teammate on a fly ball -- but also had Bumgarner's back when necessary.

Third baseman Pablo Sandoval -- all 245 pounds of him -- flipped over the railing in front of the Pittsburgh dugout to track down a foul popup off the bat of Russell Martin in the seventh.

Sandoval landed on his feet, a perfect symbol of San Francisco's seemingly endless resiliency when the calendar flips to October.

Dominant in the spring, the Giants hobbled to the finish, losing the race for the NL West title to the Los Angeles Dodgers and ceding home-field advantage in the win-or-go-home game to the Pirates, who went 17-9 in September while taking St. Louis to the final day of the season in an attempt to win the NL Central.

The chase included a decision to start budding ace Gerrit Cole in the regular-season finale in the hopes of catching the Cardinals and avoiding the wild-card game. Cole struck out 12 in a brilliant performance but the Pirates lost, putting Pittsburgh's hopes for extending its season on Volquez's excitable shoulders.

The former All-Star blossomed this summer after flaming out with woeful San Diego in 2013, winning a team-high 13 games and going unbeaten since July. He navigated three innings in the biggest start of his career before it all unraveled in the fourth.

Sandoval led off with a single and Pence followed by squeaking a hit between third base and shortstop. Brandon Belt walked on a full count to set up Crawford, who swung at a 1-2 breaking ball that didn't break much and sent it soaring to right. Pittsburgh's Travis Snider drifted back and turned, expecting it to carom off the wall.

It didn't, instead landing a couple of rows deep to immediately turn a frenzied atmosphere into a stunned silence save for the whoops coming from the San Francisco dugout, a familiar sound when its season is on the line. Crawford's grand slam was the fourth in Giants postseason history.

Shortstop had been the only position -- including pitcher -- to never hit a slam in postseason play.

San Francisco added on against Pittsburgh's normally reliable bullpen, the "Black Out" crowd fading to black, some heading to the exits long before the final out.