The process of transforming various energy sources into electricity.