The nighttime behavior of diurnal species is a “black box.” Although diurnal animals spend approximately half their lives in the dark, research has, for too long, relied on the simplifying assumption that what we can't observe isn't important. Advances in our ability to monitor nighttime behavior reveal that this is incorrect; essential biological and behavioral processes play out in the dark which are critical for understanding a species' ecology and evolution. We conducted our study from November 2021 to January 2022, using noninvasive 4G solar-powered night-vision cameras to quantitatively assess the impact of environmental and social factors on the diel activity patterns of wild Tibetan macaques at Mt. Huangshan, China. We find that Tibetan macaques maintain high levels of sleep throughout the night, as is typical for diurnal animals. However, non-sleep activity still accounted for 18.28% ± 0.45% of the total nighttime period, with activity occurring throughout the night. Notably, there was a peak in activity at midnight, including resting, movement, and social. Low temperatures significantly reduced daytime activity levels, while increasing nighttime activity, indicating that extreme temperatures have divergent impacts on activity levels during the day versus the night. Additionally, social activities were more frequent among females during the day, whereas males were more socially active at night. The distinct patterns of social activities during the day and night highlight the crucial role of social factors in nocturnal activities. The night-vision cameras have proven to be an effective research tool, allowing for a deeper understanding of primate behavior patterns and social structures. This provides new avenues for future research into the drivers of nighttime behavioral patterns across species.