Foreshadowing is a literary device used to give hints or clues about what will happen later in a story. This technique builds anticipation and helps readers make connections between events, enhancing their understanding of characters, themes, and plot developments.