In Christian theology, legalism (or nomism) is a pejorative term referring to putting law above gospel. The Encyclopedia of Christianity in the United States defines legalism as a pejorative descriptor for "the direct or indirect attachment of behaviors, disciplines, and practices to the belief in order to achieve salvation and right standing before God", emphasizing a need "to perform certain deeds in order to gain salvation" as opposed to a belief in salvation through the grace of God, "bestowed upon the individual through faith in Jesus Christ." Additionally, legalism pejoratively refers to the view, held by some fundamentalist Christians, that Christians should not engage in social practices perceived as contrary to Christian witness, such as gambling, dancing, consuming alcohol, enjoying secular entertainment, or wearing immodest clothing.
The Pharisees and Sadducees, as described in the Gospels, are often regarded by Christians as legalists. Historically, many Christian New Testament scholars attacked Judaism for supposedly being "legalistic"; this accusation has been rebutted by other scholars, such as E. P. Sanders, who identify this criticism as inaccurate and ahistorical.
In 1921, Ernest De Witt Burton stated that in Gal. 2:16, the Greek word nomos was "evidently used ... in its legalistic sense, denoting divine law viewed as a purely legalistic system made up of statutes, on the basis of obedience or disobedience to which individuals are approved or condemned as a matter of debt without grace. This is divine law as the legalist defined it."