Answer
Evolution does not violate the second law of thermodynamics.
Work Step by Step
Evolution is mainly a spontaneous process. It occurs through various processes, like mutations of genes.
Simple life forms come in various shapes and sizes. Thus, in a way, they constitute a highly randomized system with large entropy. Complex life forms are highly ordered. Thus, they have less entropy.
Evolution dictates that life forms with more entropy convert to life forms with less entropy.
According to the second law of thermodynamics, "for a closed system, in the course of every natural spontaneous process, the entropy always increases".
Though evolution is spontaneous, the system of life forms is not closed.
During evolution, life forms take food from the surroundings. Thus, they absorb energy from the surroundings. When life forms die, their bodies are decomposed. Thus, energy from the system is liberated to the surroundings.
So the system of life forms interact with surroundings. As it is not a closed system, evolution does not violate the second law of thermodynamics.