The Ten Commandments were given by God through Moses to a people whom God loved and had just rescued from four centuries of slavery in a pagan country. The people of Israel were saved but didn’t know how to live as a saved people. So, God gave them ten simple rules to live by.