The Athenian navy was defeated at the naval battle of Aegospotami by the Spartan general Lysander leaving the Athenians the choice of capitulation or face the prospects starvation and disease : the Athenians surrendered in 404 BC after the Spartans offered peace with clemency .