A turbine is a rotary mechanical device that extracts energy from a moving fluid—such as water, steam, wind, or gas—and converts it into rotational mechanical energy or "useful work".