Legalism is doing something by your own volition or flesh as a supposed spiritual requirement, such as joining a church.
Watch the Teaching: Is Keeping the Commandments Enough to Be Saved?