The first five books of the Old Testament written by Moses, (the five chapters of the Torah), are collectively one book called the Torah. Some argue that the Torah is law written for man to follow, while others argue that the Torah is meant to be hope of man's return to God's grace, via a Messiah from the seed of Abraham and David. In the book of Genesis, man fell from God's grace by defying the rules God set forth for man to abide by. In punishment of this act, God exiled man from the Garden of Eden. Man continued to sin against God and was pushed farther from God as many years passed. The message of the Torah is that God has provided man with everything he needs to obey God's laws, be sinless so that man may return to God, and the promise of a messiah to redeem our sins for us.
God provided man with a beautiful Garden to live in, but sent man from it when he sinned against God. Man was not content with accepting and obeying God's instructions, and defied the only instructions that God gave to man. The scripture states "Therefore the Lord God sent him out from the Garden of Eden to work the ground from which he was taken. He drove out the man and at the east of the garden of Eden he placed the cherubim and a flaming sword that turned every way to guard the way to the tree of life" (Genesis 3:22). The Lord was unhappy but gave the promise of a 'seed' that would allow them to return to God, in the future. God says "And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel."(Genesis 3:15).
God brought plagues to the Egyptians when the Jews were enslaved in Egypt. As the scripture states in Exodus, "Then Moses said to the people, "Remember this day in which you came out from Egypt, out of the house of slavery for by a strong hand the Lord brought you out from this place" (Exodus 13:3).