SAN FRANCISCO Matt Cain pitched six strong innings and helped himself with his bat, Buster Posey added a two-run homer and the San Francisco Giants beat the Chicago Cubs 5-3 on Saturday.
Cain (1-5) got his first victory since July 22, 2015, against San Diego, snapping a streak of 15 consecutive winless starts. The Giants were 3-12 over that stretch.
Cain also had a two-run double in the second inning.
The Giants won for the ninth time in 10 games and the Cubs fell to 2-3 on their nine-game road trip.
Jon Lester (4-3) allowed five runs on six hits and three walks in his worst outing of the season.
Dexter Fowler was 3 for 5 and homered leading off the ninth against closer Santiago Casilla, who got the next three outs for his 11th save. Kris Bryant hit his ninth homer for the Cubs.