In the honey bee, genetically related colony members innately develop colony-specific cuticular hydrocarbon profiles, which serve as pheromonal nestmate recognition cues. Yet, despite high intracolony relatedness, the innate development of colony-specific chemical signatures by individual colony members is largely determined by the colony environment, rather than solely relying on genetic variants shared by nestmates. Therefore, it is puzzling how a nongenic factor could drive the innate development of a quantitative trait that is shared by members of the same colony. Here, we provide one solution to this conundrum by showing that nestmate recognition cues in honey bees are defined, at least in part, by shared characteristics of the gut microbiome across individual colony members. These results illustrate the importance of host-microbiome interactions as a source of variation in animal behavioral traits