Birds don't like the feel of the foil under their beaks and will stay away. You can also hang strips of aluminum foil (or shiny party streamers) from the trees or other high points around your home and garden. The sun reflects off the shiny surface and bothers their eyes, deterring them from coming near.