The well-being of human populations and their sustainable development are strongly predicated on energy and food security. This is even more true of Africa due to often suboptimal food production, undernourishment, and extreme poverty. This article researches the relationship between energy and food security using Cobb–Douglas production functions based on the World Development Indicators data for 28 African countries. The methodological approach includes cross-sectional dependence and unit root tests, instrumental variables two-stage least-squares and generalized method of moments, and panel Driscoll–Kraay standard errors. Results suggest that the promotion of energy security promotes food security. This is possible because food production and distribution are energy-intensive. Therefore, energy is fundamental to achieving food security and zero hunger. The availability, affordability, accessibility, and acceptability of energy can thus help to fix the growing agricultural production shortage in Africa. An important policy focus should be on achieving energy security.