A new study tracing the evolution of same-sex sexual behavior in mammals, using phylogenetic analyses, suggests these behaviors may have evolved in part to strengthen social bonding and relationships.