The Penal Code of California forms the basis for the application of most criminal law, criminal procedure, penal institutions, and the execution of sentences, among other things, in the American state of California. It was originally enacted in 1872 as one of the original four California Codes, and has been substantially amended and revised since then. The entirety of the Penal Code is available for free at leginfo.legislature.ca.gov/faces/codesTOCSelected.xhtml?tocCode=PEN