The Sphinx did not torture Thebes. Instead, she posed a riddle to every traveler attempting to enter the city. Those who answered incorrectly were killed (or devoured); those who solved it passed freely.
“What walks on four legs in the morning, two at noon, and three in the evening?”
Answer: Man—crawling as a baby, walking upright as an adult, using a cane in old age.
Oedipus solved the riddle. The Sphinx, defeated, threw herself from a cliff. Thebes was freed—not by force, but by intellect.