The Greeks mostly kept to themselves and fought eachother.
However, the Persian Empire tried invading Greece twice.
Both times the Persians were defeated when the Greeks united.
The Greeks never stayed united for long. Eventually they were conquered by the Romans.