A magnetosphere is a region around an astronomical object, such as a planet. It is the region where charged particles are affected by the object's magnetic field. The magnetosphere of the Sun is called the heliosphere. Ions and electrons of the solar wind are deflected by the heliosphere. 