First designed in the mid-1960s for NASA airplane seats, memory foam is made from a substance called viscoelastic. It is both highly energy absorbent and soft.
Memory foam moulds to the body in response to heat and pressure, evenly distributing body weight. It then returns to its original shape once you remove the pressure