Who competed in the ancient Olympics?

Who competed in the ancient Olympics?

Athletes from the various Greek city states. Only the men could compete because they were considered strong and powerful and the women were considered an offense to Zues.