In Greek mythology, the Sphinx does not "torture" Thebes. Instead, she poses a riddle to all who approach the city. Those who cannot answer are devoured. The riddle—“What walks on four legs in the morning, two at noon, and three in the evening?”—is solved by Oedipus, leading to the Sphinx's destruction and the liberation of Thebes.