God gave the Ten Commandments to Moses after he rescued the Jewish slaves from Egypt, probably in the thirteenth century BCE. In providing the Ten Commandments and the 613 Mitzvot (laws) in the Torah, Jews believe that God has set the basis of his relationship with his people, and that is the purpose of God being the law giver. God gave laws to help people exercise their free will in the correct way.