The Messiah redeemed us from the curse of the Law by becoming a curse for us. For it is written, "A curse on everyone who is hung on a tree!"