You cannot reliably make an open backyard bee-free. You can reduce encounters around eating, play and entry areas by identifying the insects, covering food and drinks, using screens and getting qualified help with nests in high-traffic locations. Flowers visited by foraging bees are a different situation from an occupied nest beside a doorway.
Check whether the insects are bees or wasps
Yellowjackets are often mistaken for bees, especially around food and rubbish. Honey bees tend to look hairier; yellowjackets have a smoother appearance and distinct markings. Appearance varies, so use a clear photograph and local identification help when unsure. Do not approach a nest to obtain a better picture.
UC IPM’s social-wasp guide explains the distinction and why scavenging wasps can be troublesome at picnics. A yellowjacket lure or control method is not a general bee-repellent system.
Make the dining area less attractive
Keep sweet drinks and food covered, clean spills promptly and close rubbish containers. Check a drink before taking a sip, particularly when it has been left open outside. Clear finished plates instead of leaving food scraps beside the seating area.
A screened porch or properly closed screen enclosure can separate people from flying insects more reliably than spraying a scent around the yard. Repair window and door screens. Loose netting over a patch of lawn does not create a bee-proof backyard.
Give flower visitors space
Foraging bees usually have a reason to visit a flowering plant. Where encounters are frequent, move portable seating or flowering pots to create separation. Keep paths open so people do not brush directly through flowers crowded with visitors.
Do not remove drinking water that pets need. Address leaking taps and manage water containers appropriately, but recognize that this will not exclude bees from an entire property. Avoid swatting or handling insects; step away and let them leave.
Do not rely on homemade repellent claims
Peppermint oil, garlic, cinnamon, planted mint and electronic devices should not be presented as dependable ways to exclude bees from an open yard. A strong smell is not evidence that a treatment works, is harmless or will keep a nest from being defensive.
Do not spray flowers or insects with improvised mixtures. A product described as natural still needs an appropriate use and label. Traps sold for particular wasps are not necessarily effective for bees, and no trap should be assumed to capture all insects without harming them.
Get help with a swarm or established nest
Keep people and pets away from an unfamiliar cluster or active nest. Do not shake it, burn it, flood it or block an occupied entrance. Closing an entrance without a removal plan can create further problems, particularly in a building.
UC IPM distinguishes honey-bee swarms from established colonies. Contact a local swarm collector, beekeeper or qualified pest professional as appropriate. Not every beekeeper removes colonies from structures, and not every bee or wasp nest can be managed in the same way.
Plan around people at greater risk
If someone has a known serious sting allergy, follow their clinician’s prevention and emergency plan. Do not promise that a repellent or fence makes the area sting-free. Keep access clear and make sure household members know the plan.
For the opposite question, keeping a managed backyard hive involves local permission, training and ongoing colony care. Reducing unwanted encounters does not require becoming a beekeeper or eliminating every pollinator from the garden.