Pathetic fallacy is a literary device that attributes human qualities and emotions to inanimate objects of nature.

For example in Macbeth text of Shakespeare’s it appears in act 1, scene 1. When the first witch said that they are going to meet in thunder, lightning or in rain. That are objects of nature.