Riding the rail (also called being "run out of town on a rail") was a punishment most prevalent in the United States in the 18th and 19th centuries in which an offender was made to straddle a fence rail held on the shoulders of two or more bearers. The victim was then paraded around town or taken to the city limits and dumped by the roadside.