What is the function of the turbine in the manufacturing of electricity

The function of a turbine in the manufacturing of electricity is to convert the mechanical energy of a fluid, typically steam, gas, or water, into rotational motion. This rotational motion is then used to drive the generator that produces electricity. The turbine is typically connected to the generator through a shaft, and as the fluid passes through the turbine blades, it imparts kinetic energy to the blades, causing them to rotate. This rotation is then used to generate electrical energy.