Allergies can be caused by a variety of things. Most memory foam, particularly high-density foam, resists dust mites. Foam should be made with the right materials, however, since some foams are made of synthetic materials and might contain VOCs that cause allergies. You can also opt for natural latex or foam that's CertiPUR-US certified.