Athens had lost the Peloponnesian War against Sparta, surrendering in 404 BC. For a brief period of time the city was ruled by the Thirty Tyrants imposed by the Spartans, although only a year later, in 403 BC. Thrasíbulo managed to expel them and restore democracy. Difficult years followed when Ath