What  parts of speech are in this sentence:

>He went to the moon.

I’m confused about part of speech to assign to   *“to the moon”*.