riley's father enlisted in the union army during the american civil war, leaving his wife to manage the family home. while he was away, the family took in a 12-year-old orphan named mary alice "allie" smith. she was the inspiration for riley's poem "little orphant annie". riley had intended titling the poem "little orphant allie", but a typesetter's error changed it during printing.