Slugs—shell-less gastropods—are bound by one non-negotiable requirement: moisture. Their permeable skin loses water rapidly; without damp microhabitats, they desiccate and die. This dictates their global distribution.
By day, slugs retreat into refugia: under stones, bark, planters, boards, deep soil cracks, burrows of other animals. They navigate by chemosensation (tentacles) to food: fungi, algae, lichens, decaying plants, seedlings, feces, carrion. Some are predatory (e.g., Testacella eats earthworms).
Cities offer heat islands (warmer winters), irrigation, and abundant waste. Arion vulgaris (Spanish slug) and Deroceras reticulatum (gray field slug) are cosmopolitan urban invaders, hitchhiking in potted plants and produce.
Arid deserts (except ephemeral post-rain), high alpine zones (freeze-intolerant), open sun-exposed areas, saltwater (most species).
If it's wet, dark, and rotting, slugs are likely there—recycling nutrients, feeding predators, and occasionally devouring your hostas.