This is the story about the events before flood of the Earth, when God spoke to Noah to build an ark.
At the time, people were bad, and God got mad at them and sent a flood.
Noah was a pleasant man to the Lord, and that is why he and his family were rescued.