Gal 3:10-11, 13-14

Those who did not keep all the laws in the Old Testament were cursed. (Deut 27:26)

Deut 27:26 Cursed be he that confirmeth not all the words of this law to do them. And all the people shall say, Amen.

But no one can keep the whole law. So Christ redeemed us from the curse of the law by taking the curse for us. (Gal 3:10-11,13-14)

Gal 3:10 For as many as are of the works of the law are under the curse: for it is written, Cursed is every one that continueth not in all things which are written in the book of the law to do them. 11 But that no man is justified by the law in the sight of God, it is evident: for, The just shall live by faith. 13 Christ hath redeemed us from the curse of the law, being made a curse for us: for it is written, Cursed is every one that hangeth on a tree: 14 That the blessing of Abraham might come on the Gentiles through Jesus Christ; that we might receive the promise of the Spirit through faith.