The second law of thermodynamics states that whenever energy is transformed from one form to another form, entropy increases and energy decreases. In other words: over time, differences in temperature, pressure, and density tend to even out in a horizontal plane, but not in a vertical plane due to the force of gravity.