This paper presents the Enhanced Turbulent Flow of Water-Based Optimization (ETFWO), a novel algorithm designed to enhance energy management in hybrid microgrids. With the increasing global demand for energy and the pressing need to reduce greenhouse gas emissions, hybrid microgrids that integrate renewable energy sources such as solar photovoltaic (PV) and wind power with conventional generators are becoming increasingly vital. The ETFWO algorithm utilizes the chaotic dynamics of turbulent flow to optimize real-time energy production, storage, and consumption, effectively addressing the challenges posed by the intermittent nature of renewable energy sources.