When this interaction occurs, the electrons encounter the outermost layer of the magnetosphere called the bow shock, and its magnetic field slows them down, causing most of them to be deflected back into space.