Then Moses carefully wrote down all the LORD's instructions. Early the next morning Moses got up and built an altar at the foot of the mountain. He also set up twelve pillars, one for each of the twelve tribes of Israel.