The layer of the Earth's atmosphere that is closest to space is the exosphere. This is the outermost layer of the atmosphere, extending from about 375 miles (600 km) to 6,200 miles (10,000 km) above the Earth. In the exosphere, atoms and molecules escape into space and satellites orbit the Earth.
The exosphere is a very thin layer, making it even more space-like than the other layers. It is the outermost layer of the atmosphere, meaning it is the last layer before space.