Joshua was a major figure in the events of the Exodus.
He was charged by Moses with selecting and commanding a militia group for their first battle after exiting Egypt, against the Amalekites in Rephidim (Exodus 17:8–16), in which they were victorious.

He later accompanied Moses when he ascended biblical Mount Sinai to commune with God, visualize God's plan for the Israelite tabernacle and receive the Ten Commandments.
Joshua was with Moses when he descended from the mountain, heard the Israelites' celebrations around the Golden Calf, and broke the tablets bearing the words of the commandments.
Similarly, in the narrative which refers to Moses being able to speak with God in his tent of meeting outside the camp, Joshua is seen as custodian of the tent ('tabernacle of meeting') when Moses returned to the Israelite encampment.
However, when Moses returned to the mountain to re-create the tablets recording the Ten Commandments, Joshua was not present, as the biblical text states 'no man shall come up with you'.

Later, Joshua was identified as one of the twelve spies sent by Moses to explore and report on the land of Canaan (Numbers 13:16–17), and only he and Caleb gave an encouraging report, a reward for which would be that only these two of their entire generation would enter the promised land (Numbers 14:22–24).

According to Joshua 1:1–9, God appointed Joshua to succeed Moses as leader of the Israelites along with giving him a blessing of invincibility during his lifetime (Joshua 1:5).
 The first part of the book of Joshua covers the period when he led the conquest of Canaan.
Joshua was a major figure in the events of the Exodus. He was charged by Moses with selecting and commanding a militia group for their first battle after exiting Egypt, against the Amalekites in Rephidim (Exodus 17:8–16), in which they were victorious.
He later accompanied Moses when he ascended biblical Mount Sinai to commune with God, visualize God's plan for the Israelite tabernacle and receive the Ten Commandments. Joshua was with Moses when he descended from the mountain, heard the Israelites' celebrations around the Golden Calf, and broke the tablets bearing the words of the commandments. Similarly, in the narrative which refers to Moses being able to speak with God in his tent of meeting outside the camp, Joshua is seen as custodian of the tent ('tabernacle of meeting') when Moses returned to the Israelite encampment. However, when Moses returned to the mountain to re-create the tablets recording the Ten Commandments, Joshua was not present, as the biblical text states 'no man shall come up with you'.
Later, Joshua was identified as one of the twelve spies sent by Moses to explore and report on the land of Canaan (Numbers 13:16–17), and only he and Caleb gave an encouraging report, a reward for which would be that only these two of their entire generation would enter the promised land (Numbers 14:22–24).
According to Joshua 1:1–9, God appointed Joshua to succeed Moses as leader of the Israelites along with giving him a blessing of invincibility during his lifetime (Joshua 1:5).  The first part of the book of Joshua covers the period when he led the conquest of Canaan.
Joshua