When you reference something in literature, it is known as an allusion. A writer could allude to a historical event, thing, person, another literary work, or anything else.