The maiden turned out to be the daughter of King Cepheus, whose wife had claimed to be more beautiful than the daughters of the ancient god known as the Old Man of the Sea. For this impertinence, the gods sent a sea monster to ravage the kingdom. An oracle foretold that the king's only hope was to sacrifice his daughter to the beast. Perseus offered to rescue the princess, whose name was Andromeda, in return for her hand in marriage. The king gave his consent just in time, for the sea monster now hove into sight and bore down upon Andromeda's perilous perch.