People were saved during the flood as a result of Noah's obedience to God. In Genesis 6-9, God saw that the wickedness of mankind was great and decided to destroy all living things on the earth by a flood. However, God chose to save Noah and his family and instructed him to build an ark to protect himself, his family, and two of every kind of animal from the flood. Despite being ridiculed by his neighbors, Noah obeyed God and built the ark as instructed, and God spared him and his family. Therefore, it was Noah's obedience to God that led to the salvation of himself, his family, and the animals during the flood.