Hunter Pence hit a three-run homer during a five-run rally in the eighth inning that lifted the San Francisco Giants over the Colorado Rockies 9-6 on Sunday.
Buster Posey's sacrifice fly in the eighth tied it. Melky Cabrera, who had an RBI single in the comeback, drove in three runs.
Brandon Belt doubled twice and went 4 for 4 for the Giants.
Matt Belisle (3-4) took the loss after allowing the first three hitters he faced to reach bases. Rafael Betancourt gave up Posey's deep fly to left and Pence's drive into the left-field bleachers.
Clay Hensley (4-3) pitched the eighth for the win.