According to the Department of Entomology at Texas A&M University, slugs prefer to live in damp, cool conditions. Slugs are found around the world and are hardy enough to live in most climates as long as they have moisture.
A typical slug habitat is near human-made structures, such as a garden, a farm or a garbage dump. Slugs often frequent compost piles and can easily climb over logs and other structures to reach new habitats. They seek shelter underneath flower pots, wood pieces, leaves and other items during the day, and they come out at night to search for food and lay eggs.