In stars with masses below about 1.3M , the surface layers are cool enough to be partially ionised and they are hence unstable to convection. The structure of solar-type stars then consists of a hot radiative core, at the centre of which the nuclear energy is produced, surrounded by a cool convective envelope. The envelope is shallow for stars near the upper-mass limit but becomes gradually deeper for lower-mass stars, and stars with masses less than about 0.3M are believed to be fully convective. In stars with masses greater than about 1.1M , the central temperature is high enough for the CNO cycle to operate. The CNO cycle is much more sensitive to temperature than the proton-proton chain and requires a much steeper radiative temperature gradient, which is unstable to convection. Stars considerably more massive than the Sun therefore have a convective core, which contains the energy-generating regions, and a radiative envelope. Stars just a little more massive than the Sun may have both a small convective core and a shallow convective envelope. The mass in the convective core increases with the total mass of the star and very massive stars, like very low-mass stars, may be fully convective.