How Is Electricity Created? An electric generator is a device for converting mechanical energy into electrical energy. The procedure is based on the relationship involving magnetism and electricity. Every time a wire or every other electrically conductive materials moves throughout a magnetic field, an electric present-day occurs while in the wire