Magnets have two poles, a north and south pole. The magnetic field is the region where the magnetic forces act and is strongest near the poles. Atoms have magnetic properties due to the spin of their electrons, and these magnetic fields can align when a substance is placed in another magnetic field, magnetizing it. The Earth itself acts as a large magnet, with its magnetic field protecting it from solar winds and particles via its magnetosphere.