The sun setting is a metaphor for the conclusion of a day or the end of existence. It foreshadows the speaker's arrival at her ultimate resting place and symbolizes the last days of her life.