Prickly pear cacti prefer well-draining soil that replicates their natural desert habitat. A mix of sandy soil, perlite, and peat moss works well for planting prickly pear cactus. This combination allows excess moisture to drain away, preventing root rot. Avoid using heavy or clay-based soils, as they retain too much water.