Observations with the SPICAM instrument on board Mars Express have shown the occasional presence of localized ultraviolet nightside emissions associated with enhanced energetic electron fluxes. These features generally occur in regions with significant radial crustal magnetic field. We use a Monte-Carlo electron transport model to investigate the role of the magnetic field on the downward and upward electron fluxes, the brightness and the emitted power of auroral emissions. Simulations based on an ASPERA-3 measured auroral electron precipitation indicate that magnetic mirroring leads to an intensification of the energy flux carried by upward moving electrons– from about 20% in the absence of crustal magnetic field up to 33–78% when magnetic field is included depending on magnetic field topology. Conservation of the particle flux in a flux tube implies that the presence of the B-field does not appreciably modify the emission rate profiles for an initially isotropic pitch angle distribution. However, we find that crustal magnetic field results in increase of the upward electron flux, and, consequently, in reduction of the total auroral brightness for given energy flux of precipitating electrons.