The second law of thermodynamics states that the entropy of an isolated system will either increase or remain the same over time. This is why heat flows from a hot object to a cold object, but not the other way; and why it's easy to dissolve salt in water, but not so easy to get the salt back out again.