Moses was born in Egypt to Levite parents, who tried to hide him due to the edict given by the Pharaoh that all Hebrew babies born male are to be drowned. When they were unable to hide him anymore, Moses' mother made a vessel of reeds and daubed it with mortar and pitch, placing the baby inside and floating it along the river side with his sister watching to see what will happen to him. The Pharaoh's daughter went to bathe herself in the river when she found the vessel with the baby inside, and felt compassion for him. Moses' sister offered to get a wet nurse for the child and so brought her mother to Pharaoh's daughter, who charged her to take care of the baby for whatever wages would be appropriate. Later on, when the child was old enough, Pharaoh's daughter adopted him as her own son and called him Moses because she drew him out of the water.
Moses was raised as Egyptian royalty until 40 years later, when he saw an Egyptian beating a Hebrew, one of his own people. Making sure nobody would see, Moses killed the Egyptian and hid his body in the sand. Later on, Moses tried to peaceably mediate a fight between two Hebrew men, but one of them asked Moses if he was going to kill him like he did the Egyptian. Realizing that he had been found out and that the Pharaoh would want him dead, Moses fled to the land of Midian where he became a shepherd for the priest Jethro, who gave his daughter Zipporah to him as a wife. Moses had two sons, Gershom and Eliezer, through Zipporah.
Forty years later, as Moses was tending sheep, he saw a burning bush on a mountain that surprisingly wasn't consumed in the flames. As he went to investigate, Yahweh called out to Moses and told him to take off his sandals, for he was standing on holy ground. He then told Moses that He has heard the cries of His people in Egypt and is now going to send Moses back there to deliver them. Moses felt rather unsure that he was qualified for the task and that the people would even listen to him. Yahweh enabled Moses to perform some miraculous signs with His power as proof, and also sent Aaron to meet with him so that he would be Moses' spokesperson. Moses went back to Egypt with his wife and children, but on the way the LORD met Moses to kill him until Zipporah performed a circumcision on his child and called him "a bloody husband". It is at that point most likely when Moses sent Zipporah back to Midian.
In Egypt, after convincing the people of Israel through the signs that Yahweh has sent him as their deliverer, Moses spoke to the Pharaoh to let his people go into the wilderness to worship the LORD. The Pharaoh didn't acknowledge the LORD and refused to let them go, instead choosing to punish them by not letting them be given anymore straw but rather to go find straw for themselves while making the same amount of bricks as before. This made the people of Israel angry with Moses, but Yahweh told Moses that now He's going to show the people His power.