According to the first law of thermodynamics, energy cannot be generated or destroyed. An isolated system's energy remains constant.