A SOC is a negotiated outcome by which a defendant enters into a contractual agreement with the state or city government that is prosecuting the case against him. If the defendant follows his end of the bargain, the government will move to dismiss the case at the end of the period of the agreement (often two years).