By the eighth century b.c. the 12 main city-states of Ionia, including Ephesus, Priene, and Miletus, had formed what was known as the Pan-Ionic League.
The Pan-Ionic League was formed as a response to external aggression.