railroad apartments first made an appearance in new york city in the mid-19th century, and were designed to provide a solution to urban overcrowding. many early railroad apartments were extremely narrow, and most buildings were five or six stories high. few early buildings had internal sanitation, and bathrooms emptied raw sewage into the back yard. in some cases, one family would take up residence in each room, with the exterior hallway providing communal space.