When using rigid foam insulation on foundation walls, keep in mind that the foam can provide safe passage for insects—particularly termites—that can make their way into the house without being seen. If termites are a problem in your area, protect the house with a metal termite shield installed between the top of the foundation wall and the mud sill. Check local codes for specific requirements on using foam in contact with the ground.