Sunset is just a word, a noun. After sunset is an adverb phrase. At sunset is an adverb phrase.
Is sunset an adjective or adverb?
sunset is a noun: The time of day when the sun disappears below the western horizon.
Can sunset be used as a verb?
SUNSET (verb) definition and synonyms | Macmillan Dictionary.