Organisms rarely act in isolation. Their decisions and movements are often heavily influenced by direct and indirect interactions with conspecifics. For example, we each represent a single node within a social network of family and friends, and an even larger network of strangers. This group membership can affect our opinions and actions. Similarly, when in a crowd, we often coordinate our movements with others like fish in a school, or birds in a flock. Contributions of the group to individual behaviors are observed across a wide variety of taxa but their biological mechanisms remain largely unknown. With the advent of powerful computational tools as well as the unparalleled genetic accessibility and surprisingly rich social life of Drosophila melanogaster, researchers now have a unique opportunity to investigate molecular and neuronal determinants of group behavior. Conserved mechanisms and/or selective pressures in D. melanogaster can likely inform a much wider phylogenetic scale. Here, we highlight two examples to illustrate how quantitative and genetic tools can be combined to uncover mechanisms of two group behaviors in D. melanogaster: social network formation and collective behavior. Lastly, we discuss future challenges towards a full understanding how coordinated brain activity across many individuals gives rise to the behavioral patterns of animal societies.