CHICAGO (AP) Starlin Castro's ninth-inning double off the center-field wall gave the Chicago Cubs a 4-3 win Friday over the San Francisco Giants.

Chicago led 2-0 heading into the top of the ninth, but closer Kyuji Fujikawa allowed a one-out RBI single by Pablo Sandoval and hit Buster Posey with a pitch before Brandon Belt's two-out double down the right-field line.

Pinch-hitter Dioner Navarro tied the game with a home run to lead off the ninth off Giants closer Sergio Romo. The home run was the Cubs' first pinch-homer of the season.

Matt Cain made his first start since giving up nine earned runs in 3 2-3 innings of work in a 14-3 loss to St. Louis on April 7. The Giants ace allowed seven hits - two were solo home runs to David DeJesus and Castro- while striking out six and walking two.