The mesopause, at an altitude of 80–90 km (50–56 mi), separates the mesosphere from the thermosphere-the second-outermost layer of the Earth's atmosphere.