When choosing a mattress, there are a few different types available. Memory foam is one of the most popular types. Its memory properties allow it to adapt to the shape of your body and minimize pressure on your joints. This material was originally developed for NASA astronauts during reentry to Earth's atmosphere.