It was in their interests to join with the other Greek city-states in a coalition to defend their mutual interests and cities.
The two had a common enemy in the Persian Empire which gave rise to an alliance to repel their invasion of the Greek mainland in 480 BCE.
Most of the northern Greek cities succumbed to Persian but the southern cities united to oppose it, with Sparta and Athens playing leading roles.
It was in their interests to join with the other Greek city-states in a coalition to defend their mutual interests and cities.
To avoid being absorbed into the Persian Empire.
Self defence.
To face a more powerful common enemy
They united 180 Greek city-states into several alliances, the first led by Sparta, the next led by Athens.
The war against Persia. It united all of Greece, including Athens and Sparta.
Sparta and Athens were natural allies who provided support to each other - Sparta leading the Dorian bloc of independent city-states, Athens the Ionian bloc, with both interested in maintaining peace. So when a Persian expedition was sent to subdue Athens in 490 BCE after its interference in the Ionian Revolt against Persia, Athens naturally asked Sparta for support (however Athens had defeated the Persians at Marathon by the time the Spartans arrived). When Persia sent a full scale invasion in 480 BCE, the southern Greek city-states united to repel it under the leadership of Sparta with Athens providing the largest naval component. They remained friends and allies until 460 BCE, when Athens sent an army to help the Spartans put down a revolt of its serf population. During this campaign they fell out and avoided each other. After the Persians agreed to peace the Athenians turned the Delian League into an empire of its own, became over-adventurous and clashed openly with the Peloponnesian League led by Sparta, resulting in the 27-year Peloponnesian War which Athens lost.
Athens and Sparta were independent City-States and therefore were not especially close. However, the Greeks did unite to repel foreign invasions. One of the reasons that Sparta and Athens went to war (The peloponnesian war), was because after the city of Athens was destroyed by Persian invaders, the Athenians stole large sums of money from the Delian League to rebuild their city (and also some of their most famous modern wonders, such as the Parthenon), which was a national treasury set up by the primary City-States of Greece. This action enraged the Spartans in particular, and caused the war.
They were very separated by the mountainous land, but in the Battle of Salamis Sparta and Athens united to take down the Persians.
daa Sparta brought the soldiers ndd the Athens brought theirr navy (:
Pony express
Exercising his power of king through his generals.
They were already allies, Sparta had sent its army to aid the Athenians ward off the Persian attack in 490 BCE at Marathon (it arrived too late for the battle), and along with the rest of the southern Greek cities, they had a vested interest in uniting to repel the Persian invasion of 480 BCE which was aimed at bringing the Greek cities under local tyrants responsive to Persia.
Persian