The trial and execution of Socrates was the climax of his career and the central event of the dialogues of Plato. According to Plato, both were unnecessary. Socrates admits in court that he could have avoided the trial by abandoning philosophy and going home to mind his own business. After his conviction, he could have avoided the death penalty by escaping with the help of his friends.
But he didn’t avoid the trial or flee. This makes him an icon of countercultural history.