A theory of the ionization of the upper atmosphere of the earth by the ultra-violet light of the sun is developed based on known laws of pressures and constitution of the high atmosphere, ionic recombination, attachment of free electrons to neutral molecules, and diffusion of ions. It is concluded that the solar ultra-violet light is a necessary and sufficient cause of the Kennelly-Heaviside layer, and that hypotheses of other agencies of ionization, such as charged particles from the sun, penetrating radiation, etc., are uncalled for except perhaps in unusual cases. Assuming the solar ultra-violet energy to be that of a black body at 6000\ifmmode^\circ\else\textdegree\fi{}K and using known, or estimated, absorption coefficients of the atmospheric gases for ultra-violet waves below $\ensuremath{\lambda}1300\mathrm{A}$ which cause photo-electric ionization, the electron curve for the sun overhead, i.e. for high noon in summer in the temperate zone, has a maximum of 3\ifmmode\times\else\texttimes\fi{}${10}^{5}$ electrons per ${\mathrm{cm}}^{3}$ at a height of 190 km. Below this the ionization can not be calculated exactly, because of the lack of many facts which future laboratory experiments may supply, but a density of ${10}^{4}$ to ${10}^{5}$ electrons per ${\mathrm{cm}}^{3}$, or ${10}^{9}$ to ${10}^{10}$ ions per ${\mathrm{cm}}^{3}$ (or a suitable mixture of ions and electrons) seems possible down to, say, 100 km. This ionization is shown to explain quantitatively many facts of wireless telegraphy, i.e., the skip distances, overhead absorption coefficients, limiting waves, ranges and the apparent heights reached by the waves. Taking into account the seasonal changes in the upper atmospheric pressures and the altitude of the sun, the electron layer for winter noon is found to have a maximum of 1.42\ifmmode\times\else\texttimes\fi{}${10}^{5}$ at a height 147 km, and the ionization below this is less than the summer values by a factor of 2 or so. After sunset the maximum ionization is found to decrease by a factor of about 6 in the small hours of the morning; below the maximum the decrease is greater. These seasonal and diurnal changes in the ionization are shown to be in agreement with the corresponding variations in wireless wave propagation phenomena.The potential energy of the daytime ionization in a 1 ${\mathrm{cm}}^{2}$ column of the atmosphere is found to be at least 1 erg and the assumption that less than 1% of this is liberated as light will account for the light of the night sky, or the non-polar aurora, as Rayleigh calls it. Due to diffusion of the ions along the lines of magnetic force the upper ionic spray of the ionized layer diffuses to the magnetic poles, concentrates there and causes the aurora. Calculation indicates that the ozone of the atmosphere is perhaps not directly connected with the foregoing ionization, but is formed by longer wave-lengths of ultra-violet light from $\ensuremath{\lambda}1300\mathrm{A} \mathrm{to} 1800\mathrm{A}$.