Deer are commonly viewed as irritating landscape pests for the avid gardener, as they love to eat the same things humans do and more — especially vegetables and certain flowers. You can deter deer from eating your vegetable garden, however, with methods such as border planting or fencing.
Redirect deer to other parts of your property, so they won't eat the vegetables. Do this by placing salt licks at least 100 yards away from the vegetables, encouraging the deer to walk in that direction.
Plant border plants that deer detest, including rosemary and rue, to encircle your vegetables. Not only are these border plants attractive, but they also have the added bonus of repelling deer. Rue is ideal for colder climates because it thrives in freezing temperatures, if necessary.
Repel the deer with certain scents obtained at a local nursery. Hang bags of mothballs by the vegetables, use a commercial deer repellent or spread pet or human hair around the vegetables. Commercial sprays will not be odorous once they dry.
Fence the vegetable garden, if all else fails. As long as it's sturdy and tall (deer can clear fences of 5 feet tall), a fence will be the best and most permanent deterrent. Build it just around your vegetable garden or your entire property. Available at local hardware and gardening stores, select a fence that works for your landscape and budget as well as a installation method. Electric fences, which provide a mild shock, are particularly effective.