Memory foam, also known as viscoelastic foam, is a type of high-density polyurethane foam. Its distinguishing feature is that it softens in response to heat and pressure. That’s what gives memory foam mattresses their body-hugging, body-contouring feel.