Buster Posey got the scroing started for the visiting Giants as he drove in Angel Pagen in the top of the first inning.
San Francisco went on to score three more runs in the inning as they went uo 4-0 before the Cardinals even came to bat.
Lance Lynn allowed seven runs in just three and two thirds innings. Lynn had his record drop to 6-3 on the season.
Meanwhile for the Giants Tim Hudson was on his game as he continued his comeback season shutting out the Cards on just three hits over seven innings.