In 382 BC, Phoebidas, while leading a Spartan army north against Olynthus made a detour to Thebes and seized the Kadmeia, the citadel of Thebes. The leader of the anti-Spartan faction was executed after a show trial, and a narrow clique of pro-Spartan partisans was placed in power in Thebes, and other Boeotian cities. It was a flagrant breach of the Peace of Antalcidas. It was the seizure of the Kadmeia that led to Theban rebellion and hence to the outbreak of the Boeotian War. Sparta started this war with the strategic initiative, however, Sparta failed to achieve its aims. Early on, a botched attack on Piraeus by the Spartan commander Sphodrias undermined Sparta's position by driving Athens into the arms of Thebes. Sparta then met defeat at sea (the Battle of Naxos) and on land (the Battle of Tegyra) and failed to prevent the re-establishment of the Boeotian League and creation of the Second Athenian League.