The Ten Commandments that God gives Israel are based on His relationship with them and His creation designs for their good and His glory. But the laws were only meant to be a guardian until their fulfillment came in Jesus.