text: is the ozone or other gases at the atmosphere scattered out to space? if not, how they stay glued to earth?   all gases stay within the atmosphere of earth and are not scattered out to space. earth's gravity is responsible for this.  the escape velocity v (minimum velocity required by a body to escape out of the earth's gravitational field) is a function of the acceleration due to gravity g. now, if the root-mean-square (rms) speed of the gas particles (atoms and molecules) is less than v, obviously they can not escape the earth's gravity. all gases which are present in the atmosphere satisfy this condition and therefore they stay with the earth.