Honey is laid down by bees as a food source. In cold weather or when food sources are scarce, bees use their stored honey as their source of energy. By contriving for the bee swarm to make its home in a hive, people have been able to semi-domesticate the insects. In the hive there are three types of bee: the single queen bee, a seasonally variable number of drone bees to fertilize new queens and some 20,000 to 40,000 worker bees. The worker bees raise larvae and collect the nectar that will become honey in the hive. They go out, collect the sugar-rich flower nectar and return to the hive. As they leave the flower, bees release Nasonov pheromones. These enable other bees to find their way to the site by smell. Honeybees also release Nasonov pheromones at the entrance to the hive, which enables returning bees to return to the proper hive. In the hive the bees use their honey stomachs to ingest and regurgitate the nectar a number of times until it is partially digested. It is then stored in the honeycomb. Nectar is high in both water content and natural yeasts which, unchecked, would cause the sugars in the nectar to ferment. After the final regurgitation, the honeycomb is left unsealed. Bees inside the hive fan their wings, creating a strong draft across the honeycomb. This enhances evaporation of much of the water from the nectar. The reduction in water content, which raises the sugar concentration, prevents fermentation. Ripe honey, as removed from the hive by the beekeeper, has a long shelf life and will not ferment.
The beekeeper encourages overproduction of honey within the hive so that the excess can be taken without endangering the bees. When sources of foods for the bees are short the beekeeper may have to feed the bees other forms of sugar so they can survive.