Not is an adverb, which means it modifies verbs, adjectives, or other adverbs. For example, "I did not see that coming" uses not to modify the verb "saw."