Dung beetles (also known as tumble bugs) are beetles which feed partly or exclusively on feces. All of these species belong to the superfamily Scarabaeoidea; most of them to the subfamilies Scarabaeinae and Aphodiinae of the family Scarabaeidae. As most species of Scarabaeinae feed exclusively on feces, that subfamily is often dubbed true dung beetles. There are dung-feeding beetles which belong to other families, such as the Geotrupidae (the earth-boring dung beetle). The Scarabaeinae alone comprises more than 5,000 species.
Many dung beetles, known as rollers, are noted for rolling dung into spherical balls, which are used as a food source or brooding chambers. Other dung beetles, known as tunnellers, bury the dung wherever they find it. A third group, the dwellers, neither roll nor burrow: they simply live in manure.