In William Shakespeare's Macbeth, the title character becomes king after murdering Duncan. As is customary in situations leading up to the death of someone of major significance, authors will provide ominous signs that a terrible event is about to occur.
The play begins with thunder and lightning, which hints at the trouble to come. In Act 1, Scene 3, the witches speak of another storm that they will raise against a sailor's wife who would not give one of the witches any of her chestnuts. In that same scene, Macbeth's comment on the terrible weather is a direct echo of the witches' remarks in the play's opening scene. Again, all these references to storms and bad weather anticipate the evil that is to come.
Act II begins with similar atmospheric disturbances. Banquo cannot sleep because "There's husbandry in heaven; / Their candles are all out." Later in that act, Lady Macbeth hears an "owl that shriek'd, the fatal bellman", which indicates to her that Macbeth's efforts to kill Duncan are in progress.
Thus, as is customary in many literary works, foul weather and disturbances in the night foreshadow evils deeds.