So, if your garden has snakes, eliminate the snakes in order to get rid of the rats. Keep snakes out of your yard and garden by eliminating standing water, erecting a snake- and rodent-proof fence ...