Socrates never wrote anything. All of what we know about Socrates is from what other people wrote about him. Our main source of what we know about Socrates is from the writings of his student, Plato. Some of Plato's dialogues, such as the "Crito" and the "Phaedo", are loosely based on fact. They are not written records, but artistic re-creation of Socrates in action.