It depends on how you are using it. In some cases, this word should be considered an adverb. In other cases, it is considered a preposition. Take a look at how it is used in the sentence to determine what part of speech is it is.