A leitmotif is a recurring musical theme associated with a particular character, idea, or situation, often used in operas, films, and symphonic works to enhance narrative cohesion and emotional resonance. This technique allows composers to create a complex and interconnected musical narrative, enriching the audience's understanding and experience of the story.