The foundation or foundation walls your home rests on is determined by building codes and the location of the home. Other conditions such as the frost line, the soil composition, water levels and drainage can play into the type of foundation your home is built upon.