The coexistence of sympatric species with similar ecological niches has been a central issue in ecology. Clarifying the daily activity patterns of sympatric wild ungulates can help understand their temporal niche differentiation and the mechanisms of coexistence, providing information for their conservation. The Baotianman National Nature Reserve in northern China is rich in wild ungulates, but little is known about the daily activity patterns of wild ungulates in the area, making it difficult to develop effective conservation strategies. We studied five representative wild ungulates (i.e. forest musk deer, Chinese goral, Reeve’s muntjac, Siberian roe deer, and wild boar) of the region using camera-trapping data, focusing on the seasonal daily activity patterns and effects of seasonal grazing of domestic sheep, to reveal their coexistence based on temporal ecological niche differentiation. Comparative analyses of the seasonal daily activity showed that forest musk deer exhibited a single-peak activity in the warm season. Other ungulates exhibited multipeak activity. All five ungulates differed significantly in daily activity patterns. Notably, wild boar and Reeve’s muntjac showed high overlap coefficients between the cold and warm seasons. In both cold and warm seasons, the five wild ungulates and domestic sheep displayed low overlap in their daily activity rhythms potentially indicating temporal ecological niche differentiation. The results suggest that temporal isolation might be a strategy for wild ungulates to avoid domestic sheep and reduce interspecific competition, and that temporal ecological niche differentiation potentially promoted the coexistence among the studied sympatric ungulates. This understanding may provide new insights for the development of targeted conservation strategies.