Adverb:
* It describes a verb, indicating movement towards or onto the shore.
* Example: "The ship sailed ashore." (Ashore describes the verb "sailed")
Preposition:
* It shows the relationship between a noun or pronoun and another word in the sentence.
* Example: "The sailors walked ashore." (Ashore shows the relationship between "walked" and "shore")