The soundtrack can emphasize the overall theme or atmosphere of a film. John Williams's "Jaws" soundtrack, for instance, stresses a wide-ranging theme of danger and dread.
Music used during a particular scene can stress certain emotional cues, such as when the hero is in danger or when two lovers join in an embrace.
A movie soundtrack can cue specific traits of a character's personality. "The Imperial March" from "The Empire Strikes Back," for example, stresses the power and menace of Darth Vader.
Soundtrack music can connect multiple shots or scenes together, providing a common thematic link.
In some instances, a song on the soundtrack can serve a particular purpose in the plot. This often occurs in musicals, and was also used in the movie "Close Encounters of the Third Kind," in which the movie's theme actually depicted musical notes sent from an alien ship.