What material is a foam mattress made out of?

In creating almost all kinds of foam mattresses some kind of petrochemical-based materials are used that are highly flexible. Some manufacturers add some portion of plant-based materials too.