The COVID-19 pandemic significantly disrupted traditional education systems globally, with African Higher Education Institutions particularly challenged due to pre-existing infrastructural and technological limitations. This study examines the response of the University of Education, Winneba, in Ghana, to the pandemic by transitioning to online learning using the MOODLE Learning Management System and other digital platforms. This study employs a mixed-methods approach, integrating qualitative observations, quantitative data analysis, and machine learning (ML) techniques to comprehensively explore the transition to online learning at the University of Education, Winneba. Key findings indicate that while the transition enabled the continuity of education for over 92,000 students, challenges such as limited Internet access, inadequate digital literacy among faculty and students, and technical infrastructure limitations were significant barriers. The study recommends targeted investment in digital infrastructure, comprehensive training for educators, and policy reforms to support sustainable online education. This research contributes to understanding the digital transformation of education in African HEIs and offers a framework for improving resilience in future disruptions. © The Author(s) 2025.