Summarize this article:

Snails need to lay eggs in moist soil. Since they typically lay eggs while they’re active at night, you want the ground to dry out before nightfall. If you water your plants in the morning, the ground should dry out over the course of the day. If you can, opt for a drip irrigation system or a soaker hose, which will help manage the ground moisture so that snails can’t easily procreate. Snails are very attracted to moist, decaying organic matter, so they’ll likely stick around if you don’t clean up often. Check your yard and garden for debris at least once a week. Be sure to remove these items and place them in a compost or your trash. Keep in mind that a compost pile is going to be a carnival for your snails. Place it far away from your yard and garden. Additionally, surround it with an abrasive barrier to reduce snail activity. Great options include broken eggshells, diatomaceous earth, gravel, wood ash, and cedar chips. All of these items are hard for snails to cross, which effectively keeps them out. Put down a thin layer around the location you want the snails to avoid.  Crush up eggshells for an easy, at home option. You can find diatomaceous earth, gravel, wood ash, and cedar chips at a local gardening store or online. Since snails are sensitive to caffeine, they will naturally avoid used coffee grounds. Spread the coffee grounds on top of the soil or around the base of your home, as needed. If you don’t drink coffee, check with your local coffee shops, as they may give away their used coffee grounds. Copper gives snails a tiny shock, so they will instinctively avoid it. You can apply copper tape around potted plants, around your garden edges, or wherever the snails are going. If you’re using wire, tie it around your pots or make copper garden stakes.  As another option, you can sprinkle pennies around the area, as they contain copper. You can find copper tape at a local gardening store or online. These include foxglove, euphorbias, Japanese anemones, day lilies, succulents, astrantia, salvia, and fennel. Each of these plants has either a smell that snails don’t like or an uncomfortable surface that makes it hard for the snail to climb around it. If you have these in your garden or around your home, snails are less likely to stick around.  For example, you might put a potted plant near the area where snails are crawling on your home. Keep in mind that foxglove is toxic, so it may not be a good option if you have children and pets in your home.

Summary:
Water your soil in the morning to reduce egg laying. Remove moist, decaying debris from around your yard and garden. Surround your garden or home with an abrasive barrier to deter snails. Sprinkle used coffee grounds around your garden, as caffeine deters snails. Use copper wire or tape to discourage snail activity. Add plants that naturally deter snails.