A 491-species comparison links documented same-sex sexual behavior in primates with ecological pressure, long life histories and complex social systems, while leaving substantial room for underreporting and multiple evolutionary mechanisms.