By MICHAEL WAGAMAN, Associated Press

SAN FRANCISCO (AP) — Matt Cain hit a three-run homer during his first win in more than two months, and the San Francisco Giants beat the Cincinnati Reds 9-7 on Tuedsday night.

Brandon Crawford had three hits and two RBIs, and Buster Posey and Denard Span added two hits apiece for the Giants. San Francisco won for only the second time since the All-Star break.

READ MORE: 81 Pounds Of Meth, 11 Pounds Of Fentanyl Tablets Found After CHP Pulls Over Speeding Car

It had been longer than that for Cain.

READ MORE: Gov. Newsom Pushes Full California Public School Reopening by Fall As Many Districts Resist

The former Giants ace failed to make it past the fourth inning in his three previous starts and wasn’t much better against the Reds. He retired nine of his first 10 batters but quickly wore down and left with one out in the sixth after giving up the first of two homers by Adam Duvall.

MORE NEWS: Prosecutor: Kristin Smart Was Killed During 1996 Rape Attempt

Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.