A trial before a jury of 501 Athenian citizens was held in which Socrates called into question the whole basis for the trial instead of putting on a self-abasing, eloquent defense, which was expected. By a very narrow margin, the Athenians found Socrates guilty. Next, Socrates and his prosecutor suggested competing sentences. Socrates jokingly suggested free meals, but then finally settled on an insultingly small fine. His prosecutor urged death. The Athenians then voted on the sentences. The verdict was nearly unanimous (60 to 441), but this time on a matter of principle: guilty men must be punished. Socrates' followers encouraged him to flee, and indeed the city fathers expected this and were probably not averse to it; but he refused on principle and took the poison (hemlock) himself. He was, thus, one of the first of a limited number of strictly intellectual "martyrs". Socrates died at the age of 70.
Athenian trials had juries but no judges. Athens had been going through some difficult times, and the attack on Socrates was due in large part to Critius, a member of the tyrants, and Alcibiades, an aristocrat who defected in the Peloponnesian War. Both had been close associates of Socrates; however, although he was a critic of democracy he remained loyal and never condoned the tyranny. All things considered, it was a dangerous time to be the sort of man that Socrates was.
Socrates was accused of corrupting the youth of Athens by popularizing a novel meme: Sophistry.