Foundations do three things for a mattress. First, they ensure proper air circulation, thereby discouraging mold and mildew. Secondly, they provide fabric-to-fabric contact so your mattress does not rub against rough surfaces such as wood or metal. Finally, they allow you to adjust your mattress height from the floor.