Thin layer of air surrounding the air which is made up of various gases such as;
Nitrogen - 78%
Oxygen - 21%
Carbon dioxide - 0.04%
Argon 0.93%
And Water vapour
The gravitational force of the earth holds the atmosphere around it.
Hope this helped a bit :)