<human>:  When is the second law of thermodynamics violated?
<bot>: The second law of thermodynamics states that entropy always increases. The second law of thermodynamics is violated when a system can spontaneously convert to a more ordered state. This is called a phase transition.