The doppelgänger motif refers to a literary device that features a double or alter ego of a character, often embodying their inner conflicts, fears, or desires. This motif serves to explore themes of duality and identity, highlighting the complexities of human nature and the struggle between good and evil. In relation to the narrative, it can enhance the tension and deepen character development by revealing hidden aspects of their psyche.