After defeating the Amalekites in Rephidim, Moses led the Israelites to biblical Mount Sinai, where he was given the Ten Commandments from God, written on stone tablets. However, since Moses remained a long time on the mountain, some of the people feared that he might be dead, so they made a statue of a golden calf and worshipped it, thus disobeying and angering God and Moses. Moses, out of anger, broke the tablets, and later ordered the elimination of those who had worshiped the golden statue, which was melted down and fed to the idolaters. He also wrote the ten commandments on a new set of tablets. Later at Mount Sinai, Moses and the elders entered into a covenant, by which Israel would become the people of YHWH, obeying his laws, and YHWH would be their god. Moses delivered the laws of God to Israel, instituted the priesthood under the sons of Moses' brother Aaron, and destroyed those Israelites who fell away from his worship. In his final act at Sinai, God gave Moses instructions for the Tabernacle, the mobile shrine by which he would travel with Israel to the Promised Land.