What protects the Earth from solar winds?

Flexi Says:
Earth's magnetosphere is controlled by the magnetic field. The magnetosphere protects the planet from the solar wind. The solar wind is ions that fly from the Sun to Earth very fast. The magnetosphere protects Earth's ozone layer. So life on Earth needs the protection of the magnetosphere.