Use bird spikes or netting to make perching uncomfortable. Apply commercial repellents, remove food sources such as bird feeders, and keep the fence clean. Plant deterrents like lemongrass, peppermint, rosemary, or garlic nearby. A bird house or bird bath can draw birds away from the fence.