The layers are defined primarily by the "lapse rate", or change in temperature with increasing altitude. The lapse rate is negative (temperature falls) in the troposphere, but positive (temperature rises) in the stratosphere. Temperatures decrease again when ascending into the Mesosphere.