Tree-like neurites are crucial for receiving information into neurons. It is assumed that nurturing affects the structure and function of dendrites, yet the evidence is scarce, and the mechanisms are unknown. To study whether mechanosensory experience affects dendritic morphology, we use natural mechanical stimulation of the Caenorhabditis elegans’ polymodal PVD neurons, induced by physical contacts between individuals. We found that animal isolation affects the dendritic tree structure of the PVD. Moreover, developmentally isolated animals show a decrease in their ability to respond to harsh touch. The structural and behavioral plasticity following mechanosensory deprivation are functionally independent of each other and are mediated by an array of evolutionary conserved amiloride-sensitive epithelial sodium channels (degenerins). Our results suggest an activity-dependent homeostatic mechanism for dendritic structural plasticity, acting downstream to mechanosensory activation of degenerins.