They're all derived from the Greek word polis, or city, the Latin equivalent of which is civitas, which also gives us civilization, civility, civic, and a certain modern understanding of civilization.