Wherefore the law was our schoolmaster to bring us unto Christ, that we might be justified by faith.
Galatians 3:24 (KJV)
The purpose of the law of Moses was to show us that through our performance we could never come into right standing with God. The law therefore was our schoolmaster to bring us to an end of ourselves and to Christ. Now we are made one hundred percent righteous in the eyes of God—not through anything we have done or could ever do—but simply by receiving Jesus as our righteousness. This releases us from the burden of performance-based thinking and into the joy and peace that comes with living as the sons and daughters of the Most High God.