Community detection algorithms are used to identify densely connected groups of nodes in networks. Modularity optimization is commonly used, which detects communities as groups of nodes with more connections within groups than expected by chance. Parameters like resolution affect results. Multilayer networks model systems with multiple network layers over nodes. Multilayer modularity generalizes modularity to multilayer networks. Community detection in multilayer networks provides insights into structures across data types and applications.