Native to the southwestern US and northern Mexico, Koeberlinia spinosa grows in dry scrub and desert-edge landscapes with sandy, loamy, or rocky ground. Those settings shed water quickly and stay open around the roots, which helps explain its strong preference for fast drainage and good air flow in the root zone.
The best soil for crown of thorns is mineral-leaning rather than rich and moisture-retentive. Its roots are adapted to brief moisture followed by drying, so a loose, gritty structure suits the plant better than dense soil that stays wet. Slightly to moderately alkaline conditions also match the soils it naturally encounters.