Mangrove crabs live in estuaries (a partially enclosed body of water where rivers and streams meet the ocean, creating brackish water) that support specially adapted mangrove plants. Mangrove crabs are omnivorous, eating both mangrove plants, detritus (dead/decaying matter) and small mud invertebrates, sheltering in burrows to avoid predators.