Alger met many poor boys on the docks and streets of New York City. These boys had been made homeless by the Civil War. They had drifted to the city looking for work. Alger collected material from them about their lives in the city and the lives of the poor. He put this material into his books.