Dung beetles (Coleoptera: Scarabaeidae) are sensitive towards habitat composition, change, and loss. This study was carried out to investigate the diversity of dung beetles in three forest ecosystems and the habitat association. Six sampling sites represented secondary forest (Bangi Reserve Forest [BRF] and Sungkai Reserve Forest, Sungkai), recreational forest (Langkawi Island, Langkawi and Fraser's Hill [FH]) and wetland forest (Bera Lake [BL] and Chini Lake [CL]) have been chosen. A total of 15 pitfall traps were set up in three line transects rotten fish as bait. The dung beetles were collected in 24 h, 48 and 72 h. A total of 3,920 individuals with 40 species were successfully collected in which Sungkai has the highest collection followed by CL, BRF, FH, and Langkawi respectively. Based on the dendrogram, both wetlands site clustered together due to high similarity of species composition. BRF and Langkawi are also clustered together which may due to "island effect" occurred to BRF. In term of species composition and distribution, species from Clade 1 and 2 considered as less specific towards environment due to its presence in most ecosystems, while Clade 3 and 4 are more specific to certain ecosystem. In conclusion, besides dung beetles are used to measure ecosystem healthiness, it also can be specific to certain ecosystem types. [ABSTRACT FROM AUTHOR]