History of United States prison systems
Imprisonment began to replace other forms of criminal punishment in the United States just before the American Revolution, though penal incarceration efforts had been ongoing in England since as early as the 1500s, and prisons in the form of dungeons and various detention facilities had existed as early as the first sovereign states. In colonial times, courts and magistrates would impose punishments including fines, forced labor, public restraint, flogging, maiming, and death, with sheriffs detaining some defendants awaiting trial.
Source: Wikipedia — History of United States prison systems (CC BY-SA 4.0)