SAN FRANCISCO Brandon Belt hit a game-ending single to left-center with one out in the ninth, Buster Posey tied the score with a two-run homer in the eighth, and the Giants rallied to beat the Arizona Diamondbacks 5-4 on Monday night.
It was the Giants' seventh consecutive home victory.
Posey's drive to straightaway center, off of former Elk Grove High School standout David Hernandez, was his second homer of the season and in two days.
Belt's first career game-ending hit came against Tony Sipp (1-1), who allowed a leadoff single to Andres Torres. Brandon Crawford sacrificed him to second.
Belt delivered hours after manager Bruce Bochy and hitting coaches Hensley Meulens and Joe Lefebvre met with him during batting practice and urged the struggling first baseman to slow down his body movements. Joaquin Arias started in his place.
Jose Mijares struck out two in the ninth before surrendering Cliff Pennington's double.
Closer Sergio Romo (1-1) relieved in a double switch as Belt entered at first base. Romo retired pinch hitter Eric Hinske on a first-pitch grounder.
Arizona played its third straight one-run game.