Reversible and irreversible processes
Friction, heat flowing across a finite temperature difference, free expansion and mixing can't be undone without leaving a change behind, and a reversible process, free of them all, is the limit that gives the most work.
From Thermodynamics.