Close up any openings where the bees may be gaining access to the building. Keep screens on doors and windows. Check the attic for any potential openings that bees can come through. Cover openings with a fine mesh that the bees cannot fit through, if the building cannot be closed due to airflow or other concerns. Keep the bees out of the home, garage or shop and they will not have the opportunity to build a nest.
Remove flowering plants in gardens, to avoid attracting the bees in the first place. Bees seek out flowering plants as a source of nectar for nourishment and for making honey. Without access to nectar, the bees are more likely to establish a nest elsewhere. Plant ornamental grasses or shade plants that will not provide the bees with nectar.
Cut down dead trees, and fill in any holes in the ground. Bees will sometimes nest in old, hollowed-out trees or holes in the ground left by rodents. If bees have already moved into these holes, spray water inside to encourage them to move elsewhere.
Spray a commercial bee repellent on the area of concern, to keep the bees away using their sense of smell. Make your own bee repellent by combining equal parts of tea tree oil and benzaldehyde. Keep sweet-smelling liquids, vegetables and fruits in air-tight containers or refrigerated, so that the smells do not attract bees.