Adult coconut crabs feed primarily on fleshy fruits, nuts, seeds, and the pith of fallen trees, but they will eat carrion and other organic matter opportunistically. Anything left unattended on the ground is a potential source of food, which they will investigate and may carry away – thereby getting the alternative name of "robber crab." The species is popularly associated with the coconut palm, yet coconuts are not a significant part of its diet. Although it lives in a burrow, the crab has been filmed climbing coconut and pandanus trees. No film shows a crab selectively picking coconut fruit, though they might dislodge ripe fruit that otherwise would fall naturally. Climbing is an immediate escape route (if too far from the burrow) to avoid predation by large sea birds (when young) or by humans, or cannibalism (at any age) by bigger, older crabs.