	After her eventual defeat by Sparta in 404 BC, Athens soon recovered and re-established her hegemony over Euboea, which was an essential source of grain for the urban population. The Eretrians rebelled again in 349 BC and this time the Athenians could not recover control. In 343 BC supporters of Philip II of Macedon gained control of the city, but the Athenians under Demosthenes recaptured it in 341 BC.