Democratic government at Athens was suspended in 411 BC and again in 404 BC with the assumption of power by oligarchies during crises in the Peloponnesian War. The Spartans and their allies in Athens installed a dictatorship, called the Thirty Tyrants, but in 403 BC the democrats seized power again and the meetings at the Pnyx resumed. Athens lost its independence to Philip II of Macedon after the battle of Chaeronea in 338 BC; but they continued to run their internal affairs democratically until the coup by Demetrius of Phaleron in 322 BC. After his fall, the Athenians continued to run their internal affairs according to democratic forms for centuries.