Starling Marte snapped an eighth-inning tie with a three-run homer and the Miami Marlins defeated the San Francisco Giants 4-1.