Genesis 6:9-22 describes God instructing Noah to build an ark to save his family and two of every kind of animal from a coming flood that God planned to bring as judgment upon the earth for its corruption and violence. God saw that mankind had become sinful and wanted to destroy them, but chose to save Noah because he found favor as a righteous man who walked with God. Noah obeyed God's instructions to build the ark exactly as specified. He took his family and the animals onto the ark, along with food, and the flood destroyed all life on earth except those saved on the ark.