Ancient Greece was made up of independent city-states.
The city-states sometimes allied with each other.
They did this to defend Greece against Roman invaders.
Combine into one sentence using joining words.