In the Corinthian War, Thespiae was initially part of the anti-Spartan alliance. At the Battle of Nemea in 394 , the Thespian contingent fought the Pellenes to a standstill while the rest of the Spartan allies were defeated by the Boeotians. After Nemea, Thespiae became an ally to Sparta and served as staging point for Spartan campaigns in Boeotia throughout the Corinthian War. The city became autonomous as stipulated in the King's Peace of 386  which resolved the Corinthian War, and maintained autonomy until 373 . In 373  Thespiae was subdued by the Thebans, the Thespians were exiled from Boeotia and they arrived in Athens along with the Plataeans seeking aid. But they still sent a contingent to fight against the Spartans at the Battle of Leuctra in 371 . The Boeotarch Epameinondas allowed the Thespians to withdraw before the battle, along with other Boeotians who nursed a grudge against Thebes. Not long after the battle Thespiae was razed by Thebes and its inhabitants expelled. At some point later the city was restored.