In ch 7 God has decided to wipe the earth and kill all living things on it by making it rain for 400 days, but he tells noah to take 7 pairs of each clean animal 1 pair of each unclean animal and 7 pairs of each bird the male and its mate. Besides the animals noah also saves is 3 sons shem ham and japhet along with their 3 wives. 1 week after god tell noah to do this, on the 600th year 2nd month and 17th day of noah’s life god made it rain for 400 days and knights and flooded the earth as the water rose noah's ark(the place where noah kept the animals) floated on top and everything on earth died except those on the ark.
"of every clean animal take with you seven pairs a male and its mate and of the unclean one pair a male and its mate."
"For seven days from now i will bring rain down on the earth for forty days and forty nights"
Noah complied just as the lord had commanded
In the six hundredth year of Noah's life, in the second month, on the seventeenth day of the month: on that day all the fountains of the great abyss burst forth, and flood gated of the sky were open.