The earth is a solid and there is a mixture of gases surrounding the earth. The mixture of gases is called air. So the mixture of gases or the air envelope which surrounds the earth is called atmosphere. The atmosphere is held to the earth by the force of gravity.
The major part of atmosphere extends up to a height of about 40 kilometers above the earth’s surface.