The law of Panama is based on civil law with influences from Spanish legal tradition and Roman laws. For the first several years of its existence Panamanian law depended upon the legal code inherited from Colombia. The first Panamanian codes, promulgated in 1917, were patterned upon those of Colombia and other Latin American states that had earlier broken away from the Spanish Empire. Therefore, Panama's legal heritage incorporated elements from Spain and its colonies.
Several features of Anglo-American law have also been accepted in Panama. Habeas corpus, a feature of Anglo-American legal procedure that is not found in many Latin American codes, has been constitutionally guaranteed in Panama. Judicial precedent, another Anglo-American practice, has also made some headway. Judges and magistrates usually have had little leeway in matters of procedure, delays, and degrees of guilt.[1]