A layer of gas or layers of gases that envelop a planet, held in place by the gravity of the planetary body.