For all who [rely on] the works of the law are under a curse, because it is written: Cursed is everyone who does not continue doing everything written in the book of the law.
Now it is clear that no one is justified before God by the law, because the righteous will live by faith.
But the law is not based on faith; instead, the one who does these things will live by them.
Christ has redeemed us from the curse of the law by becoming a curse for us, because it is written: Cursed is everyone who is hung on a tree.
The purpose was that the blessing of Abraham would come to the Gentiles in Christ Jesus, so that we could receive the promise of the Spirit through faith.