What is Legalism?

Legalism is the strict following of rules and regulations. It also refers to the strict following of religious or moral laws. People who are legalists follow the rules because they have to an not necessarily because they want to.