Structured social hierarchies, in which individuals differ in their access to resources and influence over other group members, are a characteristic of many social species. Rongzhen Yan and Dayu Lin describe the diverse routes through which social hierarchies arise in different species and outline our current understanding of the underlying neural mechanisms.