So what was the law for? It was given to show that the wrong things people do are against God's will. And it continued until the special descendant, who had been promised, came. The law was given through angels who used Moses for a mediatorn to give the law to people.
But a mediator is not needed when there is only one side, and God is only one.
Does this mean that the law is against God's promises? Never! That would be true only if the law could make us right. But God did not give a law that can bring life.
Instead, the Scriptures showed that the whole world is bound by sin. This was so the promise would be given through faith to people who believe in Jesus Christ.
Before this faith came, we were all held prisoners by the law. We had no freedom until God showed us the way of faith that was coming.
In other words, the law was our guardian leading us to Christ so that we could be made right with God through faith.
Now the way of faith has come, and we no longer live under a guardian.