By the majority vote of several hundred jurymen in a trial. He was charged with introducing strange gods and corrupting youth (meaning leading younger Athenians astray by teaching them to think for themselves). The strange gods bit doesn’t gel, and presumably was added as impiety carried the death sentence.
There's a specialist from your university waiting to help you with that essay.
Tell us what you need to have done now!
Convicted, he chose suicide by drinking the poison hemlock over having his throat cutby the public executioner and thrown in a waste pit.