Native to tropical coasts from East Africa through South and Southeast Asia, Rhizophora mucronata grows in intertidal mudflats, estuaries, and sheltered shorelines. That habitat explains why this species handles saturated, low-oxygen ground better than most plants and prefers consistently wet, mineral-rich substrate.
The best soil for mangrove is sandy to silty with organic matter, rather than dense, sealed mud. Its root system is adapted to anchoring in shifting coastal sediment, so the substrate should stay waterlogged yet still have some structure and pore space for gas movement around the roots.