Digital transformation in education requires teachers to possess strong digital literacy and adequate educational facilities and infrastructure to support effective digital learning. However, the quality of education in public elementary schools in Serang Regency continues to face several challenges, including the limited integration of technology into classroom instruction, inadequate educational facilities and infrastructure, and the low effectiveness of digital learning. This study aims to analyze the effects of digital literacy and educational facilities and infrastructure on educational quality, both directly and indirectly through digital learning effectiveness as a mediating variable in public elementary schools in Serang Regency. This study employed a quantitative approach using an explanatory survey design. The study involved 264 teachers from public elementary schools in Serang Regency. Data were collected using a Likert-scale questionnaire and analyzed using Structural Equation Modeling–Partial Least Squares (SEM-PLS) to examine the direct and indirect relationships among the variables. The findings indicate that digital literacy and educational facilities and infrastructure have positive and significant effects on educational quality, both directly and indirectly through digital learning effectiveness as a mediating variable. In conclusion, improving teachers' digital literacy, supported by adequate educational facilities and infrastructure and effective digital learning, plays an important role in enhancing the quality of education in public elementary schools in Serang Regency. These findings provide valuable insights for policymakers and schools in formulating strategies to improve educational quality through digital transformation.