Magnetic reconnection provides a physical mechanism for fast energy conversion from magnetic energy to plasma kinetic energy. It is closely associated with many explosive phenomena in space plasma, usually collisionless in character. For this reason, researchers have become more interested in collisionless magnetic reconnection. In this paper, the various roles of electron dynamics in collisionless magnetic reconnection are reviewed. First, at the ion inertial length scale, ions and electrons are decoupled. The resulting Hall effect determines the reconnection electric field. Moreover, electron motions determine the current system inside the reconnection plane and the electron density cavity along the separatrices. The current system in this plane produces an out-of-plane magnetic field. Second, at the electron inertial length scale, the anisotropy of electron pressure determines the magnitude of the reconnection electric field in this region. The production of energetic electrons, which is an important characteristic during magnetic reconnection, is accelerated by the reconnection electric field. In addition, the different topologies, temporal evolution and spatial distribution of the magnetic field affect the accelerating process of electrons and determine the final energy of the accelerated electrons. Third, we discuss results from simulations and spacecraft observations on the secondary magnetic islands produced due to secondary instabilities around the X point, and the associated energetic electrons. Furthermore, progress in laboratory plasma studies is also discussed in regard to electron dynamics during magnetic reconnection. Finally, some unresolved problems are presented. Magnetic reconnection provides an effective mechanism for fast conversion of magnetic energy into plasma kinetic energy. Simultaneously, the topology of magnetic field changes [1][2][3]. First proposed by Giovanelli, magnetic reconnection is related to many explosive phenomena, such as solar flares, magnetospheric substorms, and disruptive instabilities in Tokamak plasmas [4][5][6][7][8]. Giovanelli thought discharge phenomena would occur around the neutral line or point where the magnetic field vanishes, an idea that could be very important in solar-flare production [9]. In 1958, Dungey first introduced the concept of "magnetic reconnection" , applying it in the construction of the open *Corresponding author (email: qmlu@ustc.edu.cn) Earth magnetosphere model [10]. The first magnetic reconnection model was proposed by Sweet and Parker, separately. In this model, plasma and magnetic field flow into the center of the current sheet from both sides where magnetic field lines are cut off and reconnected. Magnetic energy is converted into plasma kinetic energy; energized plasma then flows out of the region from both ends [11,12]. However, the predicted reconnection rate in this model is so low that it is unable to account for the explosive phenomena in space. Petschek improved the Sweet-Parker model and suggested that magnetic reconnecti...