19 For through the law I died to the law so that I might live to God. -Galatians 2:19 BSB
The Law of Moses (i.e., the Ten Commandments, animal sacrifice, circumcision, and special days) condemns everyone as no one has or can keep all of its requirements fully (see Acts 15:5-10). In James 2:10, it says, “Whoever keeps the whole law but stumbles at just one point is guilty of breaking all of it.”
Paul understands this and also knows that the only way to have a relationship with the Lord Jesus Christ is by accepting God’s righteousness through the Son of God rather than trying to keep the law—through one’s merit—to achieve righteousness, which is humanly impossible. The Law condemns but Jesus Christ is the one who justifies the person with faith.