When the flood ended, G-d promised Noah (S)He'd never destroy the world again by flood. The sign G-d gave Noah was a rainbow.