Keep Shrubbery Trimmed if Close to the Foundation. 2. Fill Minor Foundation Cracks. 3. Keep Moisture Levels Around Your Foundation Consistent. 4. Test Underground Water Sources for Leaks. 5. Do Regular Foundation Inspections.