Knowing the biodiversity of dung beetles in agricultural and livestock environments is the basis for understanding the contribution that these organisms make in nutrient cycling and ecosystem functions. The aim of the present study was to investigate the structure of copronecrophagous dung beetle communities inhabiting the main agroecosystems in southern Brazil and correlate the presence of these organisms with soil properties. From December 2012 to April 2013, samples of dung beetles were taken in the municipality of Tubarão, Santa Catarina, Brazil (28° 28' S; 48° 56' W) in corn, bean, and sugarcane crops, and in cattle pastures. Beetles were captured in 16 sampling sites, four from each agroecosystem, following a standardized methodology: 10 baited pitfall traps (feces and rotting meat) at a spacing of 50 m with exposure for 48 h. The beetles were identified, weighed, and measured. Soil analyses were performed in order to correlate data on organic matter, texture, macro and micronutrients, and pH with data on the abundance of beetle species using canonical correspondence analysis. A total of 110 individuals belonging to 10 species of dung beetles was found. Twenty-four individuals from seven species (with total biomass of 2.4 g) were found in the corn crop; five individuals from three species (1.8 g) were found in the bean crop; 81 individuals from nine species (30.3 g) were found in cattle pasture areas; and lastly, there were no dung beetles recorded in the sugarcane crop. In areas of cattle grazing, the tunnelers Dichotomius nisus and Trichillum externepunctatum correlated positively with organic matter content, whereas the roller species Canthon chalybaeus correlated positively with soil texture, preferring sandier soils. In corn crop areas, D. nisus was again correlated with organic matter content. Paracoprid dung beetle species were correlated with organic matter content in the soil, and species belonging to the roller functional group were associated with soil texture in the corn crop, preferring sandy soils. Information regarding the relationship of dung beetles with physical-chemical soil properties may be an important strategy for increasing fertility and management of soil conservation in agroecosystems.