God talked to Noah and said, "I am going to put an end to all people, for the earth is filled with violence because of them. I am surely going to destroy both them and the earth."Genesis 6
God told Noah to build an Ark that could hold a pair of every living creature. And everything else on the earth would perish as well.
God told Noah and his family to bring two of every living creature to the Ark in order to keep them alive as long as possible. Also, bring food for the animals and them. Noah obeyed God's command.
On the 600th year of Noah's life, the floodgates of heaven opened and flooded the earth. On board, Noah's family and the animals were safe. For 40 days and 40 nights, it rained.
For 150 days, the earth was flooded. The Earth was dry in Noah's 600th year, 2nd month, and 27th day. Come out of the Ark with your family and the animals, God said. As a result, they can proliferate on Earth.