A study is made of the articulation and base of hindwings of Scarabaeidae. The survey is based on an examination of over 150 genera from sixteen scarabaeid subfamilies and taxa of uncertain phylogenetic status. Relationships among all subfamilies of Scarabaeidae are examined here for the first time. The constructed phylogeny shows that the scarabaeid lineage (Scarabaeidae) is comprised of two major lines: an aphodiine line (containing Aphodiinae, including Aegialiini, Aulonocnemis and Scarabaeinae), and an orphnine line (containing Orphninae, Melolonthinae, Acoma, Chnaunanthus, Hopliini, Oncerus, Rutelinae, Dynastinae, Trichiinae, Cetoniinae, Osmoderma and Valginae).