Generators produce electricity through alternating current. They work by having either a coil rotate inside a magnet or a magnet rotate inside a coil. As the magnet passes through the coil, it induces a current that changes direction with each half rotation, producing an alternating current. Large generators commonly produce alternating current because it is easier to convert to direct current if needed than the reverse.