God gave his laws to his people to show them how to live, and to prepare them for the true hope that would come in Jesus.