One of the best ways to keep rabbits out of your garden is to use 2 to 3 foot chicken wire or any wire with 1 inch wide openings. The fence should be buried 3 to 6 inches below the soil surface. The bottom of the wire can be bent outward at a 90 degree angle away from the garden.