"When the Qin Dynasty came to power in 221 BC, it found itself ruling over a land where the teachings of Confucius had been spreading for almost 300 years. Qin attempted to rule China using a new philopsophy, that of How did Confucianism and Legalism differ?"
This website had lots of helpful and gave me a better understanding of the differences between Legalism and Confucism, and how they functioned differently.