When an electron moves, it produces both an electric field and a magnetic field. The electric field is produced due to the charge of the electron, while the magnetic field arises from the motion of the electron. This is a fundamental principle of electromagnetism, where a moving charge generates both types of fields.
The electric field is radially outward from the charge, and the magnetic field forms concentric circles around the path of the moving charge.