During a phase transition from gas to liquid (condensation), the internal energy of the system decreases because energy is released in the form of latent heat.