The Samian War was one of the last significant military events before the Peloponnesian War. After Thucydides' ostracism, Pericles was re-elected yearly to the generalship, the only office he ever officially occupied, although his influence was so great as to make him the "de facto" ruler of the state. In 440 BC Samos went to war against Miletus over control of Priene, an ancient city of Ionia on the foot-hills of Mycale. Worsted in the war, the Milesians came to Athens to plead their case against the Samians.