Across the tropics, large-bodied mammals have been affected by selective logging in ways that vary with levels of timber extraction, collateral damage, species-specific traits and secondary effects of hunting, as facilitated by improved access through logging roads. In Peninsular Malaysia, 3.0 million hectares or 61 percent of its Permanent Reserved Forests is officially assigned for commercial selective logging. Understanding how wildlife adapts and uses logged forest is critical for its management and, for threatened species, their conservation. In this study, we quantify the population status of four tropical ungulate species in a large selectively logged forest reserve and an adjacent primary forest protected area. We then conduct finer scale analyses to identify the species-specific factors that determine their occurrence. A combined indirect sign-camera trapping approach with a large sampling effort (2,665 km and 27,780 trap nights surveyed) covering a wide area (560 km2) generated species-specific detection probabilities and site occupancies. Populations of wild boar were widespread across both logged and primary forests, whereas sambar and muntjac occupancy was lower in logged forest (48.4% and 19.2% respectively), with gaur showing no significant difference. Subsequent modelling revealed the importance of conserving lower elevation habitat in both habitat types, particularly <1,000 m asl, for which occupancies of sambar, muntjac and gaur were typically higher. This finding is important because 75 percent (~13,400 km2) of Peninsular Malaysia’s Main Range Forest (Banjaran Titiwangsa) is under 1,000 m asl and therefore at risk of being converted to industrial timber plantations, which calls for renewed thinking around forest management planning.