Then find and plug the entrance hole. Leave moles alone. They are rarely numerous, and they help aerate lawns. They also eat the white grubs that damage grass and flowers. Gophers can be more numerous, but they, too, do a valuable service by aerating and mixing the soil and should usually be left alone.
Snakes are timid, and most are harmless.
They control rodent populations and should be left alone. To keep snakes away from the house, stack wood or junk piles far from it, as snakes prefer this type of cover. People unintentionally raise snake and rat populations by leaving companion animal food on the ground or keeping bird feeders. It is far better to plant bushes that will give birds a variety of seeds and berries than to keep a bird feeder. Denying mice and rats access to food in your home will do the most to discourage them from taking up residence there.