It starts at the top of the troposphere (about 7 miles or 12 km above the Earth's surface) and extends to the stratopause, which is the boundary between the stratosphere and the mesosphere.