To keep this from happening, check to see that the ground slopes away from the foundation of your home at least 6 inches over a distance of 10 feet. Adding an extension on the bottom of gutter downspouts is another way to direct water away from the foundation.