The second law of thermodynamics asserts that for a thermodynamically defined process actually to transpire, the amount of the entropies of the participating bodies must increase. In an idealized limiting case, that of a reversible process, this sum remains unchanged. It asserts that the total entropy of an isolated system can never decrease over time.
The total entropy can remain constant in typical cases where the system is in a steady state (equilibrium) or is undergoing a reversible process. The second law of thermodynamics concerns the quality of energy. As energy is transferred, more and more is wasted.