This qualitative study is an investigation and assessment of distance learning in Morocco during the COVID-19 pandemic. This research surveyed 3037 students and 231 professors enrolled in different stages of higher education programs. It aims to investigate the limitations of e-learning platforms and how these activities take place at public and private Moroccan universities during the coronavirus confinement. For this purpose, two structured questionnaires were constructed by researchers from different specialties, and the type of data was based on the responses of students and professors from 15 universities. In this paper, we have used three methods: descriptive analysis, regression analysis, and qualitative response analysis. As a data analytics tool, Microsoft Power BI was used to analyze data, visualize it, and draw insights. In this study, both professors and students stated that online learning is not more interesting than ordinary learning and professors need to provide at least 50% of their teaching in face-to-face mode. Recommendations at teaching and technical levels, such as the need for technical support and training in the use of these tools, were provided to enhance and promote distance education in Morocco. The contribution of this paper comes as a result of data analysis obtained from a survey conducted in some famous Moroccan universities.