Christ set us free from the curse of the law. He did it by becoming a curse for us. It is written, "Everyone who is hung on a pole is under God's curse." (Deuteronomy 21:23)