As hot combustion gas expands through the turbine, it spins the rotating blades. The rotating blades perform a dual function: they drive the compressor to draw more pressurized air into the combustion section, and they spin a generator to produce electricity.