Read about the kinetic molecular theory of gases.