God gave the Law to expose sin…..

“For by the merit of observing the law no one earns the status of being declared righteous before God, for it is the law that fully exposes and unmasks the reality of sin.”
‭‭Romans‬ ‭3:20‬ ‭TPT‬‬.

The law reveals the rebellion, idolatry, and unbelief of the human heart.

Partial obedience to the law does not justify before God…….

“But if you choose to live in bondage under the legalistic rule of religion, you live under the law’s curse. For it is clearly written: “Utterly cursed is everyone who fails to practice every detail and requirement that is written in this law!””
‭‭Galatians‬ ‭3:10‬ ‭TPT‬‬

It is impossible to keep the law. God gave the law, to put us to death, to kill us, so that we would see the enormity of our sin. Human beings are convinced of their righteousness, and God needs a mighty tool to crush our self-righteous presumption.

One of Luther’s favorite illustrations was that God uses the law as a  hammer 🔨;

Therefore this presumption of righteousness is a huge and horrible monster. To break and crush it, God needs a large and powerful hammer, that is, the Law, which is the hammer of death, the thunder of hell, and the lightning of divine wrath. To what purpose? To attack the presumption of righteousness, which is a rebellious, stubborn, and stiffnecked beast.”

God shatters our self-confidence and self-righteousness, so that we will put our faith in Jesus Christ. Hunger is the best cook. As the dry earth thirsts for rain, so the Law makes the troubled heart thirst for Christ. To such hearts Christ tastes sweetest, to them He is joy, comfort, and life. Only then are Christ and His work understood correctly.

We will never truly appreciate the good news, without the law. The reason many Christians nullify grace by clinging to the works of the law, is because they do not fully understand the demands of the law.