God gave commandments to his people to reveal His standard for them, based on His holy character. In the process, He taught them that they would never be capable of achieving genuine righteousness on their own.