The earth was corrupt in God's sight and was full of violence. God saw how corrupt the earth had become, for all the people on earth had corrupted their way.
So God told Noah that He was going to put an end to all the people, for the earth is filled with violence because of them. He was surely going to destroy both them and the earth.