He became king after solving the Sphinx's riddle, thereby saving Thebes from its curse.