How Is Electricity Generated? An electric generator is a tool for changing mechanical energy into electrical energy. The method is based on the relationship between magnetism and electricity. Every time a wire or every other electrically conductive substance moves across a magnetic discipline, An electrical current takes place while in the wire. T