Hamilton is probably best known for his seminal work demonstrating the role of kin selection in social evolution. His work made it clear that, for individuals to direct their altruistic behaviours towards appropriate recipients (kin), mechanisms must exist for kin recognition. In the social insects, colonies are typically comprised of kin, and colony recognition cues are used as proxies for kinship cues. Recent years have brought rapid advances in our understanding of the genetic and molecular mechanisms that are used for this process. Here, I review some of the most notable advances, particularly the contributions from recent ant genome sequences and molecular biology.