 By the terms of the Thirty Years' Peace of 446–445 BC Megara was forced to return to the Peloponnesian League.In the (second) Peloponnesian War (c. 431 – 404 BC), Megara was an ally of Sparta.The Megarian decree is considered to be one of several contributing "causes" of the Peloponnesian War.