Accurately modeling and forecasting electricity consumption remains a challenging task due to the large number of the statistical properties that characterize this time series such as seasonality, trend, sudden changes, slow decay of autocorrelation function, among many others. This study contributes to this literature by using and comparing four advanced time series econometrics models, and four machine learning and deep learning models11These models include the autoregressive model with seasonality, autoregressive models with exogenous variables, the autoregressive fractionally integrated moving average model with exogenous variables, the three state autoregressive Markov switching model with exogenous variable, Prophet, EXtreme Gradient Boosting, Long-Short-Term Memory and Support Vector Regression. to analyze and forecast electricity consumption during COVID-19 pre-lockdown, lockdown, releasing-lockdown, and post-lockdown phases. Monthly data on Qatar’s total electricity consumption has been used from January 2010 to December 2021. The empirical findings demonstrate that both econometric and machine learning models are able to capture most of the important statistical features characterizing electricity consumption. In particular, it is found that climate change based factors, e.g temperature, rainfall, mean sea-level pressure and wind speed, are key determinants of electricity consumption. In terms of forecasting, the results indicate that the autoregressive fractionally integrated moving average and the three state autoregressive Markov switching models with exogenous variables outperform all other models. Policy implications and energy-environmental recommendations are proposed and discussed.