Fencing and using chemical repellents around the garden are two of the most long-lasting methods to keep the rabbits out of the garden.