Athens and Sparta decided that they had better stop fighting each other, and become friends and allies so that they could defend themselves against the Persians. The war against Persia began around 500 BC/BCE. It dragged on for years and years. Athens and Sparta fought battle after battle against the Persian invasion.