When energy is removed, the opposite happens, decreasing the substance's temperature and turning it from liquid to solid (freezing), gas to solid (deposition), or from gas to liquid (condensation). When the pressure exerted on a substance increases, it can cause the substance to condense.