Day length is a critical environmental factor for regulating animal growth and development. This study aimed to investigate the effects of different day lengths on the developmental changes of growth parameters, testicular sizes, testosterone secretion in Meishan male pigs, and steroidogenesis proteins and melatonin receptors. Fourteen Meishan male pigs (10 weeks (wks) of age) with the same parity, paired in litter and body weight (BW), were evenly allocated into a short-day-length group (SDL, 10 light/14 dark) and long-day-length group (LDL, 14 light/10 dark). After 12 wks of the experiment, the LDL-treated boars had more lying time and less exploring time. The LDL treatment led to significant increases in body height, chest circumference, testicular length, testicular weight, crude protein digestibility, and fecal testosterone at the 10th and 12th wks of the experiment, and cortisol at the 10th wk, compared to the SDL treatment, with no differences in the final BW, testicular width, and epididymis weight. Furthermore, the LDL treatment significantly increased the protein levels of melatonin receptor 1b (MT2), aromatase (CYP19), and steroidogenic factor 1 (SF1) in the testis, with no differences in the protein levels of melatonin receptor 1a (MT1), steroidogenic acute regulatory (StAR), 3β-hydroxysteroid dehydrogenase (3β-HSD), and cholesterol side-chain cleavage enzyme (P450scc). The present study suggests that day length has an effect on the growth and gonadal development in male pigs maybe via MT2 and influences steroid synthesis and secretion in the testis. Therefore, proper day length should be considered in male pig breeding.