The temperature structure as a function of altitude, i.e. the lapse
rate, in the troposphere is set by the considerations
discussed regarding adiabatic expansion and compression (basically because a lapse
rate higher than the appropriate adiabatic lapse
rate for the given
water vapor content is unstable and leads to convection until marginal stability is restored).