Native across cool, wet parts of the Northern Hemisphere, Sphagnum flexuosum grows in bogs, fens, and other saturated peat-forming habitats. Those conditions explain the best soil for sphagnum: very moisture-retentive, organic-rich, and low in minerals, with a strongly acidic reaction.
Instead of relying on deep anchoring roots, this moss absorbs water across much of its tissue and forms dense, sponge-like mats. A peaty, soft, silty substrate suits that growth habit because it stays consistently wet while still holding some air in the upper layer rather than behaving like compacted mud.