According to the book of Exodus, Moses was born to a Hebrew mother who hid him when a Pharaoh ordered all newborn Hebrew boys to be killed, and ended up being adopted into the Egyptian royal family.
After killing an Egyptian slave master, he fled and became a shepherd, and was later commanded by God to deliver the Hebrews from slavery.