What the Law Demands

What is Paul’s opinion of the law of God? On the one hand, he says the law incites transgression (5:20), constrains liberty (7:1), arouses sin (7:5), and promises life but proves death (7:10). But on the other hand, he says, “the law is holy, and the commandment is holy and righteous and good” (7:12). How can this be? Is Paul confused?