The atmosphere is divided into layers including the troposphere, stratosphere, mesosphere, thermosphere and exosphere. It extends thousands of kilometres and is composed primarily of nitrogen and oxygen but also contains argon, carbon dioxide and other gases. The temperature, thickness and composition varies between each atmospheric layer.