The ionosphere is ionized by solar radiation, plays an important part in atmospheric electricity and forms the inner edge of the magnetosphere.