The first law of thermodynamics states that energy cannot be created or destroyed, only transferred or converted from one form to another. In chemistry, it is often formulated as $\Delta U = Q - W$, where $\Delta U$ is the change in internal energy, $Q$ is the heat added to the system, and $W$ is the work done by the system.