God saw that people were doing wrong, but Noah was a good man who obeyed God. God told him to build an ark and take his family and pairs of animals. Rain fell for forty days and nights. The ark came to rest after the waters went down. Noah sent out a dove which returned with an olive leaf. God put a rainbow in the sky as a promise never to flood the earth again.