Using castor oil is another method for how to get rid of moles and gophers in your yard. Castor oil will not kill them, but it will upset their digestive tracts. It will also make your lawn less appealing. For a homemade remedy, mix three parts castor oil and one part dish soap. Add four tablespoons of the mixture to a gallon of water. Soak the tunnels and entrances to evict the moles and soak the holes to evict gophers. Castor oil is one of the most effective home remedies to get rid of these animals.