How Is Electricity Generated? An electrical generator is a device for changing mechanical energy into electrical energy. The method is based on the connection among magnetism and electricity. Whenever a wire or any other electrically conductive material moves throughout a magnetic discipline, an electric current takes place in the wire. The massiv