In Hinduism, Matsya was the first avatar of Vishnu. As a fish, Matsya told Manu to build a ship to survive the coming Great Flood. Manu did so and survived.