<P> The overall effect of the war in Greece proper was to substitute a Spartan empire for an Athenian one . After the battle of Aegospotami, Sparta took over the Athenian empire and kept all of its tribute revenues for itself; Sparta's allies, who had made greater sacrifices for the war effort than had Sparta, got nothing . </P> <P> For a short period of time, Athens was ruled by the "Thirty Tyrants", and democracy was suspended . This was a reactionary regime set up by Sparta . In 403 BC, the oligarchs were overthrown and a democracy was restored by Thrasybulus . </P> <P> Although the power of Athens was broken, it made something of a recovery as a result of the Corinthian War and continued to play an active role in Greek politics . Sparta was later humbled by Thebes at the Battle of Leuctra in 371 BC, but the rivalry between Athens and Sparta was brought to an end a few decades later when Philip II of Macedon conquered all of Greece except Sparta . </P>

After defeating athens in the peloponnesian war sparta was defeated in 371 b.c.e. by what city-state