The Apology of Socrates to the Jury (Greek: Ἀπολογία Σωκράτους πρὸς τοὺς Δικαστάς), by Xenophon of Athens, is a Socratic dialogue about the legal defence that the philosopher Socrates presented at his trial for the moral corruption of Athenian youth; and for asebeia (impiety) against the pantheon of Athens; judged guilty, Socrates was sentenced to death.
Xenophon’s literary rendition of the defence of Socrates evinces the philosopher’s ethical opinion about a sentence of death: that it is better to die before the onset of senility than to escape death by humbling oneself to an unjust persecution.
The other extant primary source about the persons and events of the Trial of Socrates (399 BC) is the Apology of Socrates, by Plato.