Native to temperate parts of Asia, Cannabis sativa evolved in open, sunny ground with loose, workable soil rather than dense, soggy conditions. That background explains its preference for a well-drained, airy substrate that still holds some steady moisture around the roots.
Its root system grows fast and spreads deeply when space allows, so the best soil for cannabis is loamy to sandy-loamy with good oxygen flow and moderate organic content. A slightly acidic to mildly acidic reaction supports nutrient uptake without making the substrate harsh or overly mineral-heavy.