The Ten Commandments

The Law Leads Us to Christ "Salvation is through Christ alone"
Finally, the Law was given to bring a person to Christ.Did you know this is the basic reason that God gave the Law?
The Bible makes this very clear by using the illustration of a schoolmaster: Wherefore, the law was our schoolmaster to bring us unto Christ, that we might be justified by faith. But after faith is come, we are no longer under a schoolmaster. (Galatians 3:24, 25)
Below Content taken from LOGOS Software
McGee, J. V. (1995). Love, liberation & the law: the Ten commandments (p. xix). Nashville: Thomas Nelson Publishers.