In the atmosphere, the pressure of the air decreases with increasing altitude. This pressure difference causes an upward force called the pressure-gradient force. The force of gravity balances this out, keeping the atmosphere bound to Earth and maintaining pressure differences with altitude.