The 10 Commandments were given directly by God to the people of Israel at Mount Sinai after He had delivered them from slavery in Egypt.