Boeotia took a prominent part in the Corinthian War against Sparta, especially in the battles of Haliartus and Coronea (395–394 BC). This change of policy was mainly due to the national resentment against foreign interference. Yet disaffection against Thebes was now growing rife, and Sparta fostered this feeling by insisting on the complete independence of all the cities in the peace of Antalcidas (387 BC). In 374, Pelopidas restored Theban dominion and their control was never significantly challenged again. Boeotian contingents fought in all the campaigns of Epaminondas against the Spartans, most notably at the Battle of Leuctra in 371, and in the Third Sacred War against Phocis (356–346 BC); while in the dealings with Philip of Macedon the cities merely followed Thebes.