To guide their characteristic straight-line orientation away from the dung pile, ball-rolling dung beetles steer according to directional information provided by celestial cues, which, among the most relevant are the sun and polarised skylight. Most studies regarding the use of celestial cues and their influence on the orientation system of the diurnal ball-rolling beetle have been performed on beetles of the tribe Scarabaeini living in open habitats. These beetles steer primarily according to the directional information provided by the sun. In contrast, Sisyphus fasciculatus, a species from a different dung-beetle tribe (the Sisyphini) that lives in habitats with closely spaced trees and tall grass, relies predominantly on directional information from the celestial pattern of polarised light. To investigate the influence of visual ecology on the relative weight of these cues, we studied the orientation strategy of three different tribes of dung beetles (Scarabaeini, Sisyphini and Gymnopleurini) living within the same biome, but in different habitat types. We found that species within a tribe share the same orientation strategy, but that this strategy differs across the tribes; Scarabaeini, living in open habitats, attribute the greatest relative weight to the directional information from the sun; Sisyphini, living in closed habitats, mainly relies on directional information from polarised skylight; and Gymnopleurini, also living in open habitats, appear to weight both cues equally. We conclude that, despite exhibiting different body size, eye size and morphology, dung beetles nevertheless manage to solve the challenge of straight-line orientation by weighting visual cues that are particular to the habitat in which they are found. This system is however dynamic, allowing them to operate equally well even in the absence of the cue given the greatest relative weight by the particular species.