Sandoval drove in three runs with three hits, including a go-ahead double with two outs in the ninth inning Monday that propelled the San Francisco Giants to a 4-3 victory over the New York Mets.
''You know Pablo, he gets a little anxious sometimes,'' manager Bruce Bochy said. ''But you can tell he's comfortable up there and seeing the ball well and he fought off some tough pitches, too. Not once, but two, three times today.''
San Francisco took three of four at Citi Field while the Mets dropped a home series for the first time since June 10-12 against Milwaukee.
Sandoval, who hit a two-run double in the third off Dillon Gee that tied the game at 2, delivered again in the ninth.
Gregor Blanco singled with two outs off Mets closer Jenrry Mejia (5-4). Blanco stole second and, after Buster Posey drew his fourth walk of the game, Sandoval sliced a ground-rule double into the seats down the left-field line.
Mejia, the Mets' sixth pitcher of the afternoon, had allowed just one earned run since June 18.
''I don't try to do too much in those situations,'' Sandoval said. ''I just try to get a good pitch to hit. I try to focus on the moment.''
Sandoval is hitting .344 (32 for 93 over his past 23 games. The 2012 World Series MVP has 13 hits in his last 25 at-bats with runners in scoring position.
Sergio Romo (5-3) got the win with one scoreless inning and Santiago Casilla pitched a perfect ninth for his ninth save.
The Mets, who got a two-run, first-inning homer from Daniel Murphy and an RBI infield single by David Wright in the fifth off Tim Hudson, took a 3-2 lead into the seventh. But the Giants tied it off Jeurys Familia, ending his streak of 13 relief appearances since June 30 without permitting an earned run.
Hunter Pence, who had two doubles, two triples and two homers in the series, led off with a long drive that glanced off the glove of leaping left fielder Chris Young as center fielder Juan Lagares also jumped for the ball at the wall.
After Blanco walked, Familia threw a wild pitch that made it 3-all. Sandoval singled, but Lagares threw out Blanco at the plate.
That only set up another chance for Sandoval.
''He hits anything,'' Mets manager Terry Collins said. ''He hits the ball off the plate, he hits it all over the field. That's why they're a good team, because that guy drives in a lot of runs.''
Hudson left after five innings. In his previous start at Citi Field, he was carried off the field with a season-ending broken ankle after a collision at first base on July 24, 2013, while with Atlanta.
WHO NEEDS 'EM?
Giants left fielder Juan Perez had put his sunglasses on top of his hat, just in case he needed them on an overcast day. When Curtis Granderson hit a long drive over his head in the third, Perez yanked the sunglasses off his cap and carried them in his bare right hand while making a running catch on the warning track.
DEJECTED AND EJECTED
Collins was tossed at the end of the seventh by plate umpire Ben May for arguing balls and strikes. It was his second ejection of the season.
Giants rookie second baseman Joe Panik from Yonkers, New York, had a career-high three hits after entering the game batting .203. He starred in college at nearby St. John's.
Giants: Posey was struck in the mask by Lucas Duda's foul tip in the seventh. Bochy and trainer Dave Groeschner came out, but Posey stayed in the game. Giants backup catcher Hector Sanchez already is on the disabled list because of a concussion. He traveled Monday from New York to begin a rehab assignment with Triple-A Fresno. ... Outfielder Angel Pagan (back inflammation) could return to the Giants by the weekend.
Mets: Matt Harvey, who threw off a mound Friday at Citi Field for the first time since undergoing Tommy John surgery last October, is scheduled to do the same Tuesday at the team's spring training complex in Port St. Lucie, Florida.
Giants: San Francisco plays the fifth of a 10-game road trip with a three-game set starting Tuesday night in Milwaukee. Giants righty Tim Lincecum (9-7, 4.21 ERA) faces Jimmy Nelson (1-2, 4.30). It will be the first meeting of the teams this season.
Mets: New York begins a three-game series Tuesday night in Washington. Mets righty Zack Wheeler (6-8, 3.60) faces Gio Gonzalez (6-7, 3.88). The Nats have won five of six meetings against the Mets this season. They meet 13 times in the final eight weeks.