Crito (ˈkraɪtoʊ or ˈkriːtoʊ ; Κρίτων krítɔːn) is a dialogue that was written by the ancient Greek philosopher Plato. It depicts a conversation between Socrates and his wealthy friend Crito of Alopece regarding justice (δικαιοσύνη), injustice (ἀδικία), and the appropriate response to injustice after Socrates's imprisonment, which is chronicled in the Apology. In Crito, Socrates believes injustice may not be answered with injustice, personifies the Laws of Athens to prove this, and refuses Crito's offer to finance his escape from prison. The dialogue contains an ancient statement of the social contract theory of government. In contemporary discussions, the meaning of Crito is debated to determine whether it is a plea for unconditional obedience to the laws of a society. The text is one of the few Platonic dialogues that appear to be unaffected by Plato's opinions on the matter; it is dated to have been written around the same time as the Apology. Crito, which may be based on a historical event, is thought to have been published in 399 BCE. Since his trial in Apology, Socrates had been imprisoned for four weeks and will be executed in a matter of days. Historians are not aware of the exact location of Socrates' cell but according to archaeologists, the ancient Athenian prison is about southwest of the Heliaia court, just outside the site of the agora. Plato's representation of Socrates is intimate but because it is a literary work, the historical validity of what was said and how much of Plato's interpretation of Socrates aligns with his real beliefs is uncertain. Socrates and Crito are the only characters in the story. Crito was a rich Athenian who like Socrates was from deme of Alopece. Once Socrates was charged with corrupting the youth and impiety, Crito unsuccessfully vouched to pay his bail. To spare him the prison sentence after Socrates was sentenced to death, Crito was ready to pledge to the court that Socrates would not flee, a plea that was ultimately rejected. Through both the trial and the execution, Crito was present.