Memory foam is a blend of polyurethane (a polymer made as a byproduct of petroleum refining) and additional chemicals that give the memory foam its low-resilience. It was originally developed by NASA in the 1970s for airplane cushioning and has since become one of the widest materials used in mattresses and pillows.