Developmental plasticity is particularly important for humans and other primates because of our extended period of growth and maturation, during which our phenotypes adaptively respond to environmental cues. The hypothalamus–pituitary–gonadal (HPG) and hypothalamus–pituitary–adrenal (HPA) axes are likely to be principal targets of developmental “programming” given their roles in coordinating fitness‐relevant aspects of the phenotype, including sexual development, adult reproductive and social strategies, and internal responses to the external environment. In social animals, including humans, the social environment is believed to be an important source of cues to which these axes may adaptively respond. The effects of early social environments on the HPA axis have been widely studied in humans, and to some extent, in other primates, but there are still major gaps in knowledge specifically relating to males. There has also been relatively little research examining the role that social environments play in developmental programming of the HPG axis or the HPA/HPG interface, and what does exist disproportionately focuses on females. These topics are likely understudied in males in part due to the difficulty of identifying developmental milestones in males relative to females and the general quiescence of the HPG axis prior to maturation. However, there are clear indicators that early life social environments matter for both sexes. In this review, we examine what is known about the impact of social environments on HPG and HPA axis programming during male development in humans and nonhuman primates, including the role that epigenetic mechanisms may play in this programming. We conclude by highlighting important next steps in this research area.