Which countries took part in ancient Olympic games?

Citizens from all the over 2,000 Greek city-states were eligible..