The measurements of electron spectra in the Martian magnetosphere by the HARP instrument on board the Phobos 2 orbiter are presented. The energy of the electrons (a few tens of electron volts) is sufficient for the impact ionization of the planetary neutral gas, and the characteristic flux of electrons (∼108 cm−2 s−1) could produce the nightside ionospheric layer with a peak density of a few thousands of electrons per cubic centimeter, which corresponds to densities observed earlier during radio occultations of the Mars 4 and 5 and Viking 1 and 2 spacecraft. The possibility of magnetospheric electron precipitation into the nightside atmosphere of Mars is in agreement with the mainly induced nature of the magnetic field in the planetary magnetotail (as at Venus), while the variability of the Martian nightside ionosphere may be explained by the partial screening of the atmosphere by a weak intrinsic magnetic field of the planet.