The stagecoaches were largely replaced by the railroad in the East by the middle of the 19th century. The stagecoach, however, remained important for transportation in rural areas. Most isolated villages and hamlets were connected to the rail head and to the market place by the stagecoach until the 20th century.