Before the philosopher Socrates was tried for moral corruption and impiety, the citizens of Athens knew him as an intellectual and moral gadfly of their society. In the comic play, "The Clouds" (423 BC), Aristophanes represents Socrates as a sophistic philosopher who teaches the young man Pheidippides how to formulate arguments that justify striking and beating his father. Despite Socrates denying he had any relation with the Sophists, the playwright indicates that Athenians associated the philosophic teachings of Socrates with Sophism. As philosophers, the Sophists were men of ambiguous reputation, "they were a set of charlatans that appeared in Greece in the fifth century BC, and earned ample livelihood by imposing on public credulity: professing to teach virtue, they really taught the art of fallacious discourse, and meanwhile propagated immoral practical doctrines."