The Apology is likley a fairly accurate account of the trial of Socrates. In his brilliant work The Apology, Plato summarized the speech Socrates delivered in his defense.
Shortly after the scene described in Euthyphro, Meletus and others indicted Socrates and brought him to trial. Here is a presentation of the dialogue with a listing of topics within it. Socrates' relentless and, to some people, infuriating questioning of his fellow citizens eventually led to his death.

The Trial and Death of Socrates Socrates, revered founder of the Western philosophical tradition, is better understood as a mythic philosopher than as a historical figure. Socrates was a real person, he was Plato's teacher, he really did have a trial, he really was put to death, Plato was present at the trial and execution. It's the most famous use of hemlock in history. He lived in Athens, from 469 until his execution in 399 BCE.

Socrates accounts for the first accusations as follows: [T]here is a certain Socrates, a wise man (σοφὸς ἀνήρ), a thinker of the things aloft, and one who has investigated all things under the earth and who makes the weaker speech the stronger.2 (18b6-c1) Socrates has been accused of engaging in natural philosophy and rhetoric. In 399 B.C.E., Socrates — the father of Greek philosophy — was put on trial for impiety and corrupting the youth of Athens. Socrates' second speech is an argument for a different penalty rather than death, but Socrates argues that he is doing a great service to the state of Athens, so that the appropriate penalty would be to pay him a stipend for the rest of his life to support him in his criticism of individual citizens of Athens. Plato's The Apology is an account of the speech Socrates makes at the trial in which he is charged with not recognizing the gods recognized by the state, inventing new deities, and corrupting the youth of Athens.

The jury’s vote was close, and Plato’s version of his speech gives reason to suspect that, if Socrates had delivered a different, more ordinary defence speech, playing to the jurors’ sympathies, he could have changed enough votes to win his case. At the time, Socrates was a controversial figure in the city and not particularly liked. Socrates' speech, however, is by no means an "apology" in our modern understanding of the word. Socrates appears for trial and makes his defense (his Apology). The Trial. READ Plato's account of Socrates' defense in Apology Written 360 B.C.E Translated by Benjamin Jowett in any one of these locations. The Apology is Plato's account of the trial of Socrates. Socrates was 70 years old by the time he was put on trial. The trial of Socrates was not a show trial. THE TRIAL OF SOCRATES - 399 BC .