What was the name of the group formed by Greek city-states for defense?

It was the citizens who could afford to own a panoply of arms, who formed a militia to be called out in defence of their city-state.