an is a preposition meaning "to, towards, for" in Sindarin. In Quenya the preposition means "for" or "because".
When used as a prefix, an- means "by" or "with" in Sindarin.