1. Dung beetles perform relevant ecological functions in pastures, such as dung removal and parasite control. Livestock farming is the main economic activity in the Brazilian Pantanal. However, the impact of cattle grazing on the Pantanal´s native dung beetle community, and functions performed by them, is still unknown. 2. We evaluated the effects of cattle activity on dung beetle community attributes (richness, abundance, biomass, composition and functional group) as well as their ecological functions (dung removal and soil bioturbation) in the Pantanal. In January/February 2016, we sampled dung beetles and measured their ecological functions in 16 sites of native grasslands in Aquidauana, MS, Brazil, 10 areas regularly grazed by cattle and six control ungrazed areas (> 20 years abandonment). 3. We collected 1169 individuals from 30 species of dung beetles. Although, abundance, species richness and biomass did not differ between grasslands with and without cattle activity, species composition and functional groups differed among systems. Large roller beetles were absent from non-cattle grasslands, while the abundance, richness and biomass of medium roller beetles was higher in those systems. 4. Despite causing changes in species/functional group composition, our results show that a density compensation of functional groups in cattle grazed natural grasslands seems to have conserved the ecological functions (dung removal and soil bioturbation), with no significant differences between systems. 5. Therefore, our results provide evidence that cattle breeding in natural grasslands of the Brazilian Pantanal can integrate livestock production with the conservation of the dung beetle community and its ecological functions.